Flip a Coin

?
Click to flip

Click Flip Coin. After a short animation the page shows Heads or Tails, each about half the time, using Math.random. The last result is replaced, and there is no history log.

How to use

  1. Click Flip Coin. That is the only button. The coin mark starts as a question mark and the line under it says to click to flip.
  2. Watch the short animation. While it runs, the result line shows three dots and the coin face moves.
  3. Read the outcome when the motion stops. Heads puts an H on the coin and the word Heads under it. Tails puts a T on the coin and the word Tails under it.
  4. Click Flip Coin again to replace that outcome. The earlier word is not kept anywhere on the page.

When it helps

A two-person choice, who starts a game, or any question that really is a coin toss. You do not type the options, and you cannot rename the faces. The page is only heads and tails.

For a number range, open the random number generator and set Minimum, Maximum, and How many. Repeats are allowed there, and reversed bounds are swapped. For several faces and a sum, open the dice roller and pick Sides: D4, D6, D8, D10, D12, or D20, with up to ten dice.

Limits

The chance is Math.random compared with one half. There is no weight, no third face, and no history log. Each flip replaces the last one, so you cannot scroll back to an earlier call. The page does not record who asked or what the question was.

A burst of the same side is normal in a short run and is not a sign the button is stuck. The animation lasts about six tenths of a second, then the words appear. This is a game aid, not a draw you can hand to someone who needs an audit trail.

Questions

Is every flip 50/50?

About half. A random value under one half becomes heads, and the rest becomes tails. A few flips can still come up the same way. You cannot type a different split.

Where is the log of earlier flips?

There is none. The coin and the result line show only the latest flip. Leave the page and even that result is gone.

How long is the animation?

About six tenths of a second. The words Heads or Tails are written when that delay ends. There is no control to change the wait.