Dice Roller & Coin Flip

Roll virtual dice or flip a coin using true browser randomness.

What is the Dice Roller & Coin Flip?

This tool rolls one or more virtual dice (4, 6, 8, 10, 12 or 20-sided) or flips a coin, using your browser's cryptographically secure random number generator rather than a weaker pseudo-random source, so results are genuinely unpredictable.

How to use it

  1. Choose Dice or Coin Flip mode.
  2. For dice, pick the number of sides and how many dice to roll.
  3. Click Roll to see the result and the running total.

This is a handy stand-in for physical dice or a coin when playing a tabletop game remotely, settling a quick decision, teaching basic probability, or running any process that needs a fair random outcome. The d20 option matches the twenty-sided die used throughout tabletop role-playing games, while d4 through d12 cover the other standard polyhedral dice found in most game sets. Every roll uses crypto.getRandomValues, generated fresh in your browser with each click.

Want the "why" behind this tool? Read Why a Truly Fair Coin Flip Is Harder to Code Than It Sounds.