Your options
4 options · between 2 and 20.
Sound only ever plays after you press Spin — nothing autoplays.
How the winner is picked
index = floor(crypto.getRandomValues(Uint32Array(1))[0] ÷ 2^32 × optionCount) · wheel rotates 5 turns + the offset onto that sector
The wheel
No spin yet
Press Spin the wheel to pick one.
All options (4)
| # | Option | Chance |
|---|---|---|
| 1 | Pizza | 25.0% |
| 2 | Sushi | 25.0% |
| 3 | Burger | 25.0% |
| 4 | Salad | 25.0% |
Every sector is the same size, so every option has an equal 25.0% chance. Thin sectors may not show their label on the canvas — the text list above always lists every option.
Honest limitations
The winning angle comes from crypto.getRandomValues(), which gives a good-quality uniform draw — but this is casual selection only. It is not a cryptographically fair, verifiable or audited draw, and it must not be used for gambling, prize draws, competitions or anything with money or legal consequences on the outcome. The browser wheel also cannot stop a determined user from changing the options between spins. For anything consequential, use a transparent, published method instead. Confetti is plain DOM animation with no external library, and the tick sound is a short oscillator blip created only after you press Spin — there is no autoplay.