How our wheel picks a winner
The short version: the winner is chosen with your browser’s cryptographic random number generator before the wheel starts moving. Every entry’s chance is exactly the size of its slice, and every spin comes with a receipt you can check.
1. The winner is picked before the animation
When you press Spin, WheelPip asks your browser for a random 32-bit number using crypto.getRandomValues(), the same source browsers use for security keys. It turns that number into a winner, then animates the wheel so it stops on a random point inside the winner’s slice. The animation is for show. It never changes the result.
2. How a random number becomes a winner
Each entry has a weight. Normal entries have weight 1, and an entry written as Pizza *3 has weight 3. Add up all the weights to get the total, W.
- Take a random 32-bit number, r, between 0 and 4,294,967,295.
- If r is at or above the largest multiple of W that fits in 32 bits, throw it away and draw again. This step removes the tiny bias that a simple remainder would add.
- Work out the position: r mod W, a whole number from 0 to W − 1.
- Count down the list in order, adding each entry’s weight, until the running total passes the position. That entry wins.
For several winners in one spin, the same steps repeat with the already-picked entries taken out.
3. The fairness receipt
After every spin, open “Fairness receipt” in the result window. It shows the time, the number of entries, a SHA-256 fingerprint of the exact list that was spun, and the random number or numbers used. Press Copy receipt to share it, for example under a giveaway post.
To check a receipt yourself:
- Save the list as plain text, one entry per line, with no blank lines and no line break after the last entry. Write weights as
name *3. - Hash it with any SHA-256 tool, for example
shasum -a 256 list.txton a Mac or Linux. It should match the receipt’s fingerprint, which shows the list you saved is the one that was spun. - Apply the steps in section 2 to the receipt’s random number to find the winner.
If “No repeats” was on, the draw only included entries that hadn’t been picked yet in that round. Check the number against those remaining entries.
4. Why the same name can come up twice
Real randomness has streaks. With 10 equal entries and 5 spins, the chance that every result is different is 10 × 9 × 8 × 7 × 6 ÷ 10⁵ = 30.24%. So about 69.8% of the time, at least one entry comes up twice. That is normal, not a sign of a rigged wheel.
If you want every entry to get a turn, switch on “No repeats until everyone is picked”, or “Remove the winner after each spin”.
5. We tested it a million times
We spun a 10-name wheel 1,000,000 times with this exact method. Every name came up about 100,000 times and weights matched their settings. See the results and download the data.
6. What we will never add
- No hidden weights. Any weight is written in the list as
*Nand shown under Chances. - No “rigged” mode that secretly forces a result.
- No result decided by a server. Everything happens in your browser.
Last updated November 27, 2026