🪙

Coin Flip

Flip a virtual coin, with a running heads/tails tally.

🔒 Runs entirely in your browser — nothing is uploaded.

Heads: · Tails: · Total flips:

How Coin Flip works

How does the coin flip tool work?

Each flip runs Math.random() < 0.5 to decide between Heads and Tails, giving each side an even 50/50 chance in theory. The result is shown immediately, added to a running Heads/Tails tally, and pushed onto a history strip that keeps the most recent 20 flips.

When would I use this?

It's useful for settling a quick either/or decision, picking who goes first in a game, or demonstrating probability to students by flipping a large number of times and watching the counts even out. The running tally makes it easy to see how close the split stays to 50/50 over many flips.

Does the flip count get saved anywhere?

No - the Heads/Tails counts and flip history live only in the page's memory via Alpine.js state, so refreshing the page or clicking "Reset" wipes them. Nothing is sent to a server or stored in a cookie, and the underlying randomness comes from the browser's standard Math.random(), not a cryptographic source.