Skip to content

Animated Coin Flipper

A tactile heads-or-tails coin flip with accessible animation, unbiased Web Crypto randomness, and a private session history.

How the flip is chosen

The outcome comes from one bit generated by the browser's Web Crypto API. Heads and tails each map to one of the two possible bit values.

The animation shows the already selected result; it does not use animation timing or Math.random to decide the outcome.

P(Heads)=P(Tails)=12P(Heads)=P(Tails)=\frac{1}{2}

Examples

Single flip

Input

Press Flip coin

Show result

Result

Heads or Tails with equal probability

Frequently Asked Questions

Is the flip stored?

Only the ten most recent flips are kept in page memory. They are not uploaded or saved.

Does reduced-motion preference work?

Yes. The visual transition is shortened when reduced motion is requested.

References

Related Tools