An online coin flip gives heads or tails with an equal 50% chance, and an online dice roller gives each face from 1 to 6 an equal one-in-six chance. Good tools use a proper random source, so the result is as fair as a real coin or die, and often fairer.

The free Coin Flip & Dice Roller does both. It animates each toss, keeps a tally and history, and uses your browser's cryptographically secure random generator. Nothing is sent to a server.

When is a virtual coin or dice useful?

  • Settling a decision between two equal options: which film, which restaurant, who goes first.
  • Gully cricket and sports, when nobody has a coin handy for the toss.
  • Board games like Ludo or Snakes and Ladders when the dice have gone missing.
  • Classroom probability lessons, where students can toss hundreds of times and see the tally settle.
  • Role-playing and party games that need several dice at once.

How to flip a coin

  1. Open the Coin Flip & Dice Roller. The Coin flip tab is selected.
  2. Press Flip coin. The coin spins and lands on Heads or Tails.
  3. Check the History card for the number of heads and tails, their percentages and the current streak.
  4. Press Reset to clear the tally and start fresh.

The history strip shows your most recent 40 flips as H and T, so you can see streaks at a glance.

How to roll dice

  1. Switch to the Dice roller tab.
  2. Choose the Number of dice, from 1 to 10.
  3. Press Roll dice. Each die tumbles and lands, and the result reads like "4 + 6 = 10".
  4. Look at the History table for every roll, plus the total number of rolls, the average total and the highest total.
  5. Press Reset to clear.

If your device is set to reduce motion, the animations are skipped and results appear immediately.

The real odds behind coins and dice

Coins

  • Heads or tails: 1 in 2 (50%) on every toss.
  • Two heads in a row: 1 in 4 (25%).
  • Five heads in a row: 1 in 32 (about 3.1%).

That last figure surprises people. In a long session of tossing, runs of five or more are common. They do not mean the coin is broken.

One die

Each face has a 1 in 6 chance, about 16.7%. The average roll over time is 3.5.

In Ludo, you often need a 6 to move a piece out. The chance of getting at least one 6 in three rolls is about 42%, and in four rolls about 52%. So waiting several turns for a 6 is completely normal.

Two dice

With two dice there are 36 equally likely combinations, but the totals are not equally likely:

Total Ways to make it Chance
2 or 12 1 About 2.8% each
3 or 11 2 About 5.6% each
4 or 10 3 About 8.3% each
5 or 9 4 About 11.1% each
6 or 8 5 About 13.9% each
7 6 About 16.7%

The average total with two dice is 7. Roll a few dozen times and watch the history's average total drift towards it.

How the tool keeps it fair

Every flip and die face is chosen with the browser's crypto.getRandomValues, using a method that avoids the small bias some simple random generators introduce. The animation is decoration only; the result is decided first and the coin or dice are then turned to show it. That means fancy-looking spins cannot be "nudged" by timing your taps.

Is a virtual toss as good as a real one?

For deciding things fairly, yes. A real coin's outcome depends on how hard it is flicked, how it is caught and the surface it lands on, which is why people sometimes argue about a "bad toss". A physical die can be slightly uneven, especially cheap ones with scooped-out dots. A secure random generator has none of these quirks.

What a virtual toss lacks is the ceremony and the feeling that everyone saw it. If that matters, put the screen where everyone can see it before pressing the button, and agree on the call first. In a formal match or competition, follow whatever method the organisers or rules require.

A quick classroom experiment

Probability makes more sense when you see it happen:

  1. Ask the class to predict how many heads they will get in 10 flips, then in 100.
  2. Flip 10 times and note the result. It may well be 3 or 7 heads.
  3. Keep going to 100 flips. The percentage will usually move much closer to 50%.
  4. Discuss why small samples swing widely and large samples settle, which is the law of large numbers.
  5. Switch to two dice and test whether 7 really appears most often.

Common misunderstandings

  • "Tails is due." Past tosses never change the next one.
  • "The app is rigged because I got 7 heads out of 10." That happens about 12% of the time with a fair coin.
  • "All dice totals are equally likely." With two or more dice, middle totals are far more common.
  • "Animations decide the outcome." The result is chosen randomly; the animation just shows it.

Tips for using it

  • Agree on what heads and tails mean before flipping, so nobody argues afterwards.
  • For a best-of-three decision, keep the tally visible on screen.
  • For dice with more sides, such as a d20, use the Random Number Generator with a range of 1 to 20.
  • To pick a person rather than a side, the Random Name Picker chooses from a list, and can split the group into teams.

Whether it is a cricket toss on the street or a Ludo game with missing dice, the Coin Flip & Dice Roller gives you a fair result in a second.