How coin flip simulator works
Press Flip and the simulator tosses a fair coin as many times as you ask — from a single flip to 10,000 at once. Each flip uses your browser's cryptographic random number generator, the same source browsers reserve for security-sensitive randomness, so the sequence cannot be predicted or biased.
The result panel reports how many heads and tails came up, the percentage of each, and how the counts compare with the 50/50 expectation you would predict in the long run. Short samples wander — 10 flips might easily land 70/30 — and watching that gap shrink as you flip more is the whole lesson of the law of large numbers.
The simulator also tracks streaks: the longest unbroken run of heads, the longest run of tails, and the run currently in progress at the end of the sequence. Streaks are why coin games feel rigged — a run of 7 heads in 100 flips is not just possible, it is common. The first 120 flips are shown as an H/T sequence you can copy, so you can transcribe results for homework, simulations or games.