How the yes or no wheel decides
How the wheel picks a fair answer, why every result is equally likely, and when a random answer is and is not a good way to decide.
Last reviewed · 495 words
In short
- The answer is chosen with the browser's cryptographic random numbers before the wheel turns; the spin only shows it.
- Every segment is exactly equally likely, because the pick discards the few random values that would favour the first segments.
- The two-answer wheel has four Yes and four No segments; with Maybe, each answer has two of six.
- Use it for small, low-stakes choices; for anything important, a random answer is a way to notice what you were hoping for, not a decision.
A yes or no wheel is the digital version of tossing a coin or pulling a petal: ask a question, spin, and let chance answer. This one is built to be scrupulously fair. This page explains how it picks, why the odds are exactly even, and how to use it well.
How to use it
Type your question if you like, choose Yes or No, or Yes, No or Maybe, and press Spin the wheel. The wheel turns for about four seconds and stops on the answer, which is shown large underneath with your question. A count keeps track of the answers in this visit, so you can see how the results fall over many spins.
How the answer is chosen
Many spinner pages let the animation decide: the wheel is given a random push and the answer is wherever it stops. That is fair only if the animation is, and it is easy to get subtly wrong.
This wheel works the other way round. When you press Spin, it first picks the answer, then animates the wheel to land on it:
- A random number from the browser's cryptographic generator. Browsers provide
crypto.getRandomValues, the same source of randomness used for security keys, which is far better than the ordinaryMath.random. - An unbiased pick. Turning a random 32-bit number into one of 8 segments with a plain remainder would favour some segments by a minute amount whenever 2³² is not a multiple of the segment count. The wheel uses rejection sampling: in the rare case the random number falls in the uneven tail, it is thrown away and another drawn. Every segment is then exactly equally likely.
- A spin to that segment. The wheel turns five full times plus whatever brings the chosen segment under the pointer, at a random spot inside it so it does not always stop dead centre.
Our automated tests check that the wheel always lands on the segment that was picked, and that thousands of picks come out evenly.
The odds
| Wheel | Segments | Chance of each answer |
|---|---|---|
| Yes or No | 4 Yes, 4 No | 1 in 2 |
| Yes, No or Maybe | 2 of each | 1 in 3 |
Over a handful of spins, runs are normal: three Yeses in a row happens one time in eight. Over many spins the count evens out.
If your device asks to reduce motion, the wheel turns once quickly instead of spinning for four seconds.
Using it well
A random answer is good for choices where any option is fine and the hard part is just choosing: which film, who goes first, whether to order in tonight. It saves time and settles arguments fairly.
For decisions that matter, it is useful in a different way. Spin, and notice how you feel about the answer. If you are disappointed that it said No, you have learned that you wanted Yes. That reaction is the real answer; the wheel only helped you find it.