How fair is the wheel?
Fairness
Every entry’s chance is exactly the size of its slice. Your browser’s secure random number generator picks the winner before the wheel starts to turn. This page shows how, lets you test it, and says what a single spin can’t prove.
Test it
Test the wheel’s odds yourself
The test runs on your device. Nothing is uploaded.
This test spins a wheel 100,000 times on your device, with the same code as a real spin, and compares the counts with the odds. Try your own wheel, or a wheel with uneven weights.
Add *2 after an entry to double its chances. The test runs on this device, and your entries are not uploaded.
How to read the result
Random results are never exactly on the odds, so the columns should be close, not equal. The number p comes from a chi-square test. It is the chance that a fair wheel lands at least this far from its odds. A high p means nothing unusual happened.
Even a fair wheel gives a p under 0.001 about once in 1,000 runs, so one low p does not prove a problem: run the test again. A wheel with a real bias would come up low again and again.
How it works
How the wheel picks a winner
- Each entry’s weight is stored as a whole number: a weight of 1 is stored as 100. The total weight is the sum of all the weights.
- The page draws a random whole number from 0 to the total weight minus 1, using 53 bits from
crypto.getRandomValues. It throws away the few values that would make some results more likely than others, so every number is equally likely. - Each entry covers a range of numbers as wide as its weight. The winner is the entry whose range holds the random number. The slices use the same ranges, so there are no hidden weights.
- The wheel turns a few full circles and stops at the angle for that number. The animation is worked out from the result, and never decides it.
Replay
Replay a spin
After a spin, open Show how the winner was picked under the result. It shows the random number, the total weight, the winning slice, the final angle and an ID for the entry list (a SHA-256 fingerprint).
Copy a link to replay this spin puts the entries and the random number in a link. Anyone who opens it can run the same spin in their own browser, with the same winner and the same final angle.
Limits
What a spin can’t prove
A spin on your own is replayable and auditable, not tamper-proof. A replay shows that these entries and this random number give this winner. It can’t show that the number came from a real spin, because anyone can type a number into a link, or spin until they like the result and share only that one.
When it matters, spin in front of the people it affects.
FAQ
Fairness: questions and answers
Have another question? Contact us.
Q1Could the site make an entry win?
Not without changing the code your browser runs. The random number is drawn on your device, and nothing is sent to a server to choose it. You can test the results yourself with the test on this page.
Q2Does the spinning animation affect the result?
No. The winner is chosen before the wheel starts to turn, and the animation is worked out from that result. Turning off sound, confetti or motion does not change the odds.
Q3Can I prove a result to someone else?
You can show how it came about, but you can’t prove it was the first spin. A replay link runs the same spin again, and anyone can check that the entries and the random number give that winner. Someone could also spin many times and share only the result they liked, or type a number into a link by hand.
Q4What should I do when the result really matters?
Spin where everyone can watch it live, agree on the entries first, and keep the replay link. For anything with legal rules, such as a prize draw, check what those rules require. This site is a tool, not an independent witness.