Guides

How to Make Fair Random Choices: Coins, Dice and Teams

Decide fairly with a coin flip, understand dice odds, pick names and split teams without bias, and learn what makes computer randomness trustworthy.

What makes a random choice fair

A fair draw has three properties. Every outcome has the same chance, nobody can predict or steer the result, and everyone agrees on the rules before the draw happens. The third one is the one people forget: if you decide after the flip whether it is best of one or best of three, the method is no longer fair, however good the randomness was.

Say out loud, or write down, what each result means before you flip, roll or shuffle, and accept the first result.

Coin flips and streaks

A fair coin gives heads or tails with probability 1/2 each, and each flip ignores the ones before it. Five heads in a row has a probability of 1/2 × 1/2 × 1/2 × 1/2 × 1/2 = 1/32, so over a long series it happens regularly. In 100 flips, a run of five or more of the same side is very likely.

Believing that tails is “due” after a run of heads is called the gambler’s fallacy. The next flip is still 50/50. The coin flip tool can flip up to 10,000 times and shows the longest runs, which makes the point quickly in a classroom.

Dice odds

One six-sided die gives each face a 1/6 chance, about 16.7%. Two dice are different: their total runs from 2 to 12, and the 36 possible combinations are not spread evenly. A total of 7 can be made six ways (1+6, 2+5, 3+4, 4+3, 5+2, 6+1), so it has a 6/36 chance, about 16.7%, while 2 and 12 each have only 1/36.

Odds of at least one success over several tries are worked out from the chance of no success: the probability of rolling at least one 6 in four rolls is 1 − (5/6)^4, about 51.8%. The dice roller understands notation such as 2d6+3 and shows the lowest, highest and average totals, which helps when you design or compare game rules.

Picking names and splitting teams

To pick a winner or split a group fairly, shuffle the whole list so that every order is equally likely, then take names from the top. The standard method is the Fisher–Yates shuffle: go through the list from the end, and swap each name with a randomly chosen one at or before it.

For teams, deal the shuffled names out in turn, like cards: first name to team 1, second to team 2 and so on. That keeps team sizes within one of each other. Ten people in three teams gives teams of 4, 3 and 3. The random team generator does the shuffle and the dealing, and can also pick one or more names.

When computer randomness can be trusted

Most programming languages have a quick pseudo-random generator, such as JavaScript’s Math.random, which is fine for games but not designed to be unpredictable. Browsers also offer a cryptographic generator through the Web Crypto API, the same kind used for security keys, and that is the better choice for any draw where fairness matters.

There is a subtle trap in turning random numbers into choices. A random byte has 256 values; taking the remainder after dividing by 6 to pick a die face gives faces 1 to 4 slightly more chances than 5 and 6, because 256 is not a multiple of 6. Good tools avoid this modulo bias by discarding values from the uneven tail and drawing again. The tools on this site work that way, and the random number generator covers custom ranges.

Running a draw in public

For a raffle, a classroom or a team, transparency matters as much as the method. Explain the rules first, run the draw where everyone can see it, for example on a shared screen, and record the result straight away, with a screenshot or written note.

Avoid redrawing because nobody likes the outcome, unless you agreed in advance when a redraw is allowed, such as when the winner is absent. If people will check the result later, keep the original list and the order in which names were drawn.

Common questions

Is a computer coin flip as fair as a real coin?

With a cryptographic random generator, yes, and often fairer, because real coins can be slightly biased by how they are flipped and caught.

What are the chances of rolling a 6 on one die?

1 in 6, about 16.7%. The chance of at least one 6 in four rolls is about 51.8%.

How do I pick two different winners from a list?

Shuffle the list once and take the first two names, so the same person cannot be picked twice. The random team generator’s pick mode does this.

Last updated:

Useful next steps