Coin toss
A coin toss you can actually click: tap the coin, press "Flip once / Flip 10 times" or hit Space, and every flip comes from a seed-driven xorshift128 PRNG stream. The same seed plus the same clicks reproduces the sequence exactly, and the page keeps live flips, heads/tails, heads share, longest runs and the current streak — all computed from the real sequence.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Coin toss
Click the coin, press a button or hit Space — every flip comes from the seed-driven PRNG stream.
- Flips
- 0
- Heads
- 0
- Tails
- 0
- Heads share
- 0%
- Longest heads run
- 0
- Longest tails run
- 0
- Current streak
- 0
Keyboard: Space / Enter flips once (click the coin or board first to focus it).
Stream fingerprint 0e66168b; restart rewinds it to the start.
Flip log
Showing the newest 0 flips (the stats cover every flip).
No flips yet — click the coin above.
What this tool does
- Flip a virtual coin before a decision: tap the coin, press "Flip once / Flip 10 times", or hit Space — every flip comes from a seed-driven PRNG stream.
- Demonstrate reproducibility: with the seed fixed, restart and repeat the same clicks to get exactly the same sequence.
- Look at the heads/tails split, the heads share and the longest runs over many flips.
Example
Input
Seed lucky-2024, then "Flip once" five times
Output
Flip 1: Tails ○ Flip 2: Tails ○ Flip 3: Heads ● Flip 4: Tails ○ Flip 5: Heads ● Heads 2 (40.0%), tails 3 (60.0%), longest heads run 1
This is the real output of the seed stream: restarted with the same seed, five flips give the same "T T H T H".
Frequently asked questions
How do I play it?
Click the coin in the middle, or press "Flip once / Flip 10 times"; you can also click the coin and then press Space or Enter. You decide how many flips to make and when to restart, and the stats accumulate from those flips.
Is the result reproducible?
Yes. The randomness comes from a seed-driven xorshift128 generator rather than Math.random and it never reads the clock, so the same seed plus the same clicks (same number of flips, same restart point) gives the exact same sequence — "the third flip was heads" stays verifiable.
Are the statistics real?
Yes. Flips, heads, tails, the heads share, the longest heads/tails runs and the current streak are all computed from the flips you actually made — nothing is pre-generated.
Why not true randomness?
True randomness cannot be reproduced or covered by deterministic tests; a seeded PRNG is what makes "same seed, same result" verifiable.
Keywords:coin flipcoin tossdeterministic