Guides

Is a Spin Wheel Really Random?

A fair wheel gives every entry the same chance on every spin. That sounds simple, but it surprises people: fair wheels repeat names, run hot and cold, and sometimes seem to pick on someone. Here is what is going on, and how our wheel works under the hood.

What "random" should mean for a wheel

For a picker, being random comes down to two promises:

  1. Equal chances. With 10 entries, each has a 1 in 10 chance on every spin. (If you want unequal chances, you choose that on purpose, for example by listing an entry twice.)
  2. No memory. Each spin ignores the ones before it. A name that just won is exactly as likely to win the next spin as any other.

The second promise is the one that causes arguments, because people expect a fair wheel to share wins out evenly. It doesn't, and it shouldn't.

Why a fair wheel still repeats names

Suppose a class of 25 spins the wheel five times, with every name staying on. The chance that at least one name comes up twice in those five spins is about 35%, roughly one time in three. That is the same maths as the famous birthday puzzle: there are many pairs of spins, and any pair can match.

Streaks look suspicious too. Spin a 10-entry wheel 100 times and each entry should win about 10 times, but the natural spread is about 3 either way. So one entry winning 14 times and another winning 6 is normal. Across all ten entries, it is common, roughly half the time, for at least one to reach 15 wins or more on a perfectly fair wheel.

If repeats would feel unfair for what you're doing, don't ask the wheel to be less random. Change the rules instead: tick "Remove the winner after each spin" on our wheel, or use the name picker, which by default doesn't pick the same name twice until everyone has had a turn.

How a computer makes a random choice

A physical wheel is only as fair as its bearing, its balance and the strength of the spin. A website has a different problem: computers follow instructions exactly, so "random" has to come from somewhere.

Browsers offer two sources. The everyday one, Math.random, is fine for games and animations, but it is not designed to be unpredictable, and the web standard makes no promise that its output can't be guessed. The stronger one, crypto.getRandomValues, is the generator browsers use for security work. It draws on unpredictable events collected by your operating system and is built so its output cannot be guessed. Our pickers use the stronger one for every result.

The hidden trap: turning a random number into a winner

Even good random numbers can be used badly. The generator gives a large random number, and the site has to turn it into "one of 7 entries". The obvious way is to divide by 7 and keep the remainder.

Here is the catch, shown with a small example. Imagine the generator gave a number from 0 to 255 (256 possibilities). 256 doesn't divide evenly by 7, so remainders 0 to 3 come up 37 times each and remainders 4 to 6 only 36 times. The first four entries would be very slightly favoured. With real generators the imbalance is far smaller, but it is still there.

The fix is simple. Throw away the few numbers at the very top of the range that cause the imbalance, and draw again. What's left divides evenly, so every entry's chance is exactly equal. Our wheel, name picker and team maker all do this.

The winner is chosen before the wheel moves

When you press spin on our wheel, the order of events is:

  1. The winner is picked with the method above. Each entry's chance is its share of the wheel: equal slices, unless you listed something twice.
  2. The animation is worked out to land the pointer on that winner's slice, at a slightly random spot inside it so it looks natural.
  3. The wheel spins a few full turns and slows down onto the result.

This means the length of the spin, the speed setting, where the wheel started and the moment you clicked make no difference to who wins. They're just for show. It also means there's no point in trying to "time" a click. Nothing you do changes the odds.

Picking several at once, and teams

When you pick several names together, or split a list into teams, we shuffle the whole list with a method called Fisher–Yates, using the same fair random numbers, and read the result off the shuffled list. Every possible order is equally likely, so every possible group or team split is too.

How to check a wheel yourself

You don't have to take any site's word for it. A rough test anyone can run:

  1. Put 4 entries on the wheel and spin 100 times, keeping a tally.
  2. Each entry should win about 25 times. Anything from about 17 to 33 is normal variation.
  3. Repeat with the entries in a different order. A favoured position (say, always the first entry winning more) would show up across several runs; ordinary luck won't keep favouring the same one.

A hundred spins can't prove a wheel is perfect, but it will catch a badly broken one.

Giving entries more chances on purpose

Sometimes you want an unfair wheel, for example a raffle where some people bought more tickets. List the entry once per ticket. Three lines of "Sam" among twenty lines gives Sam three of the twenty slices, so a 3 in 20 chance. The chance is always the entry's share of the wheel, so what you see is what you get.

Your list stays on your device

The picking happens in your browser, not on our server. Your entries are saved in your own browser so they're there next time. "Copy link" puts them in the part of the link after the # sign, which browsers don't send to websites. The live draw is the exception, because phones need to share the same draw. Its names are held on our server only for the draw and deleted within 24 hours.

For the short version, see how it works. Or just spin the wheel.