Skip to content
Logo Any Help Me

Coin Flip & Dice Roller: Random Generator

A Fair Coin When You Do Not Have One

Settling something by chance needs a source of randomness that nobody controls. A physical coin works, but only if one is to hand and everyone can see it; a person picking "a number between one and ten" is not random at all, since people avoid the ends and over-choose seven.

This roller produces coin flips and dice rolls from the browser’s cryptographic random number generator, which is the same source used for security keys rather than a predictable arithmetic sequence.

How to Flip or Roll

Everything is a single click, and the history is what makes it useful for more than one decision.

  1. Choose a coin or a die. Dice come in the standard tabletop sizes, from four sides up to twenty.
  2. Set how many to roll at once when you need several, three dice at a time rather than three separate rolls.
  3. Flip or roll. The result appears immediately along with a running history.
  4. Use the history to keep track across a game or a series of decisions, which is what a physical coin cannot do.
  5. For anything where fairness will be questioned, roll in front of the people affected rather than reporting a result afterwards.

What Makes This Random

Most software randomness comes from a pseudo-random generator: an arithmetic sequence that looks random but is fully determined by its starting value. That is fine for a game and unsuitable for anything where predicting the next value would matter. This tool uses the browser’s crypto random source instead, which draws on entropy the operating system gathers from unpredictable physical events.

The practical difference is that the sequence cannot be reproduced or predicted from the results you have already seen. For a coin flip that distinction rarely matters, but it costs nothing to use the stronger source, and it means the tool is honest about being random rather than merely appearing so.

Dice and Their Odds

Probability of any single face, and of common outcomes on two six-sided dice.

RollOutcomeProbability
CoinHeads or tails50% each
d6Any given face16.7%
d20Any given face5%
2d6Total of 716.7%, the most likely
2d6Total of 2 or 122.8% each, the least likely
2d6Any double16.7%
3 coinsAll three the same25%

Two dice do not give a flat distribution, which surprises people. Seven comes up six times more often than two, because there are six ways to make seven and only one way to make two. Any game that treats 2d6 as uniform is being scored wrongly.

The Gambler’s Fallacy

After five heads in a row, tails is not "due". The coin has no memory, and the sixth flip is fifty-fifty exactly as the first was. Long runs feel wrong because human intuition expects short sequences to look balanced, but in a hundred flips a run of five is entirely ordinary and a run of six or seven is likely.

The related error is reading meaning into a small sample. Ten flips landing seven heads is unremarkable, it happens about twelve per cent of the time with a fair coin, and proves nothing about the coin. Fairness only becomes visible over hundreds of trials, which is why a handful of results never settles an argument about whether something is rigged.

Frequently Asked Questions

Is this actually random?
It uses the browser’s cryptographic random source, which draws on entropy gathered by the operating system, rather than a predictable arithmetic sequence.
Can the results be predicted?
No. The cryptographic source is designed so that seeing previous outputs gives no information about the next one, which is the property that makes it suitable for security keys.
After five heads, is tails more likely?
No. The coin has no memory and the next flip is fifty-fifty. Expecting a correction is the gambler’s fallacy, and long runs are more common than intuition suggests.
Why is 7 the most common total on two dice?
Because there are six combinations that make seven and only one that makes two. Two dice give a peaked distribution, not a flat one.
Which dice can I roll?
The standard tabletop set from four sides to twenty, and you can roll several at once rather than repeating a single roll.
Does it keep a history?
Yes. A running list of results is kept for the session, which is useful across a game or a series of decisions and is something a physical coin cannot offer.
Is anything sent to a server?
No. The randomness is generated in your browser and no results are transmitted or stored anywhere else.

Explore more in Tools

View all →