Prize wheel
A Canvas prize wheel: write the prizes as "prize,weight" so the weight sets both the sector size and the odds, then spin. Quick draw skips the animation, winners can be removed automatically, and win counts plus shares are tallied. The randomness comes from a seed-driven xorshift128 stream, so the same seed plus the same clicks gives the same winners in the same order — "Restart (same seed)" replays it.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Wheel
Draws use a seed-driven deterministic PRNG (xorshift128) where the weights really drive the odds, entirely on your device.
- Prizes in play
- 3
- Draws
- 0
- Prizes won
- 0
- Total weight
- 10
A larger weight means a bigger sector and a higher chance, e.g. "First prize,1"; the default weight is 1 and a weight of 0 can never win.
Stream fingerprint 9291a1b3; "Restart (same seed)" rewinds it so the same seed replays the same sequence.
Result
Press "Start spinning" or "Quick draw" to try your luck.
Prizes in play
- First prize×1 (10%)
- Second prize×3 (30%)
- Try again×6 (60%)
Win counts
Actual wins and shares per prize, counted from the real draw history above.
- First prize0 wins · 0%
- Second prize0 wins · 0%
- Try again0 wins · 0%
Winner history
No winners yet.
What this tool does
- Run a lucky draw at a party, a livestream or in class: write the prizes as "prize,weight" so the weight sets both the sector size and the odds, letting the grand prize stay rare.
- Settle everyday decisions like where to eat or who presents next — a spin feels better than rolling dice, and "Quick draw" gives the answer instantly.
- Audit a draw afterwards: with the seed fixed, the same prizes plus the same clicks produce exactly the same winners in exactly the same order for anyone to verify.
- For multi-round draws, turn on "remove a prize after it wins" so past winners stay out while win counts and shares accumulate automatically.
Example
Input
First prize,1 Second prize,3 Try again,6 (seed demo)
Output
Sector shares: first prize 10% · second prize 30% · try again 60% Four "Quick draw" clicks with seed demo: Try again → Second prize → Second prize → Try again
The weights sum to 1+3+6=10, which drives both the sector angles and the odds. This is the real winner sequence for seed demo: restart and draw four times again to get the same order.
Frequently asked questions
How do weights work?
Each prize weight sets its share of the full circle and therefore its chance of winning: a bigger weight means a bigger sector and a higher chance. A weight of 0 gives a zero-degree sector that can never win, and if every weight is 0 the draw degrades to an equal-probability pick.
Are the draws reproducible?
Yes. The randomness comes from a seed-driven xorshift128 generator, not crypto and not Math.random; the same seed plus the same prize list plus the same clicks (how many draws, when you restart) gives exactly the same winners in the same order. "Restart (same seed)" rewinds the stream to the start so the whole sequence can be replayed.
Does quick draw give the same result as the animated spin?
Yes. Both use the same weighted picker and consume the next number from the same stream; the animated spin just plays an ease-out animation and parks the pointer on the winning sector midline, while quick draw shows the result immediately.
What happens to long prize names?
Labels longer than eight characters are truncated with an ellipsis, counted by code point so emoji are never split. The winner result, the prize list (with weight and share) and the win stats all show the full name.
What if I mistype a weight?
A weight that is not a number, or is negative, raises an error saying the weight must be 0 or greater; a dangling separator such as "Prize," is also rejected. Spinning with an empty list asks you to add at least one prize first.
Keywords:prize wheelspinner wheellucky drawrouletterandom wheel