Skip to content

How It Works

Flip-a-Coin turns a physical coin toss into a fast, honest digital equivalent. Here is exactly what happens when you press the coin.

1. Choose to Flip

Press the coin, or the Flip the Coin button, whenever you need a decision.

2. A Random Result Is Generated

Your browser generates a random value using the Web Crypto API (window.crypto.getRandomValues()), which is a stronger source of randomness than a basic pseudo-random function like Math.random(). That value is mapped to heads or tails with equal probability.

3. Watch the Coin

A short animation plays while the result is revealed. If your device has “reduce motion” enabled, the animation is skipped and the result appears immediately.

4. Get Heads or Tails

The result is shown clearly on screen and announced for screen readers via an accessible live region.