Flip a fair virtual coin that lands on heads or tails with equal probability using Math.random() in your browser. No data leaves your device.
How it works
The tool draws one pseudo-random float in [0, 1) and maps values below 0.5 to heads and the rest to tails, so each side has an equal 50% chance. Every flip is independent — the outcome carries no memory of previous flips, and there is no streak-correction logic.
When to use it
- Break ties in casual games or decisions between two equal options
- Demonstrate binary random outcomes and probability basics in classrooms
- Quick yes/no prompts when either answer is acceptable
Limitations
Not cryptographically secure — unsuitable for security tokens or for any process requiring a certified, auditable random source. Each flip is independent; past results never affect the next flip (there is no "due for tails" effect). Very short runs can still show streaks of the same side, which is expected pseudo-random behavior, not a bug.
Example
Flipping once returns either heads or tails; flipping ten times independently might return a sequence like heads, heads, tails, heads, tails, tails, tails, heads, tails, heads — roughly balanced over many trials but not guaranteed exactly 50/50 in any single small batch.