A fair coin, flipped by the browser's cryptographic random source. Settle a decision, or test how streaks really behave over 100 flips.
Ready
| Heads | 0 |
|---|---|
| Tails | 0 |
| Total flips | 0 |
Each flip draws from crypto.getRandomValues, the operating system's cryptographic random generator, so there is no pattern to game. Over many flips the tally drifts toward 50/50 — but short streaks of five or six in a row are completely normal, which the 100-flip button demonstrates nicely.
Is a virtual coin flip really fair? As fair as the device's cryptographic random source, which is the same randomness used for security tokens. It is not influenced by previous flips.
Why did heads come up seven times in a row? Chance has no memory. A run of seven heads has the same probability as any other specific sequence of seven — it only looks suspicious because the pattern stands out.