NamesWheel picks the winner with cryptographic randomness before the wheel moves. This page is the contract: what random means here, and how to test it.
- 1Secure random number
- 2Pick the winner
- 3Spin to it
- 4Celebrate
Is the wheel really random?
How a winner is selected
- We take the current eligible list (blank lines and eliminated names are ignored).
- We draw an index with
crypto.getRandomValues()— the same family of APIs browsers use for secure tokens. We reject biased remainders so “modulo the list length” does not favor early slices. - Only then do we compute a target angle and play the deceleration animation.
If the animation were the source of truth, frame drops or a slow device could change the result. They cannot. The winner is already chosen.
Equal odds
On a fair list, every name has the same chance. Six names means about 16.7% each. Weighted wheels change that on purpose: chance is weight divided by total weight, and the slice size matches.
A weighted wheel is still fair to its weights. A name with weight 2 on a total of 10 has a 20% chance — not a hidden extra spin. weighted wheel.
Randomness vs the wheel animation
The wheel is a progress indicator. Extra full rotations and easing make the stop look physical. Reduced-motion users skip the spin and still get the same quality of pick. Sound ticks follow the spinning slices; they do not vote.
Duplicates
If the same name appears twice in the list, it is two slices. That is usually a paste accident. Use Remove duplicates when you want unique people. If you intentionally want two tickets for one person, leave both lines — that is a manual weight of 2.
Weighted probability
On the weighted wheel, chance is weight ÷ total weight. Slice arc length uses the same ratio so the picture matches the math. Weights of zero or less are treated as unused.
No-repeat selection
When “Remove winner after spin” is on — or you tap Remove & spin again — that entry is marked eliminated. The next draw samples only the remaining pool. History still shows who already won. This is sampling without replacement, not a new RNG. The raffle wheel and student picker start with this on.
Repeats are normal
Independent spins can repeat a name. That is not a bug. The table shows the chance of at least one repeat with ten names. Turn Don’t repeat winners on and that chance drops to zero because picked names leave the pool.
| Spins | Don’t repeat OFF | Don’t repeat ON |
|---|---|---|
| 3 | 28.0% | 0% |
| 5 | 69.8% | 0% |
| 10 | 99.96% | 0% |
Empty and single-item lists
With no eligible names, Spin does nothing. With one eligible name, that name is the winner — there is no random draw to make.
What we do not claim
- We do not publish third-party audit badges we have not earned.
- We do not use fake star ratings in markup.
- We cannot make a public raffle “certified” without your own rules and records.
Everyone once (classroom mode)
“Everyone once” is constrained participation: names already picked in the current round are temporarily ineligible. That is not a claim of extra randomness. The cryptographic picker still chooses among the remaining eligible entries.
Draw receipt hashing
A draw receipt SHA-256s a canonical string of version, timestamp, winner, draw number, mode flags, and an entries hash of the ordered labels and weights. It is a record you can keep, not independent proof that a given draw was unmanipulated.
Who builds the wheel is on About NamesWheel. Compare public pages for Wheel of Names, Picker Wheel, and the Google spinner.