Coin Flip
Flip a virtual coin. Heads or tails?
About this tool
Make a two-outcome random choice with a virtual coin. Each flip compares JavaScript’s pseudo-random value with 0.5: values below the midpoint produce heads and the rest produce tails. The animated result, history, and running totals let you follow a short sequence without finding a physical coin or recording every outcome manually. Use one flip to decide who starts a board game, heads for takeout and tails for cooking, or which team chooses first. Ten flips might produce 6 heads and 4 tails; that short-run imbalance is normal and does not mean the next flip is more likely to be tails. Reset clears the accumulated session when a new decision begins. The theoretical probability is 50% for each outcome on every independent flip, but small samples rarely divide exactly in half. This browser-based pseudo-random process is suitable for casual choices and probability demonstrations, not gambling, audited drawings, cryptography, or any decision requiring a verifiable random source. Agree on what heads and tails represent before flipping, and use a clear rule for repeating a result if participants accidentally trigger the button more than once.
How to use
Select "Flip Coin" to toss the animated coin.
Repeat the flip to build "Flip History" and the Heads, Tails, and Total counts.
Press "Reset" in the history card whenever you want to clear the session.