Skip to main content

Draws are taken from your browser's cryptographic random source, not Math.random, so every outcome is equally likely.

AnaBenChloeDiegoEmmaFinn
Names on the wheel: 6

A wheel that is honest about where it stops

Most spinning wheels animate first and decide afterwards, or decide from the pixel the pointer happens to land on. This one draws the winner first, from the browser's cryptographic random source, then rotates the wheel to put that slice under the pointer. The animation is a presentation of the draw, not the draw itself.

How it works

  • Turns a pasted list into an equal-sized slice per name, however many names there are.
  • Draws one name uniformly, then spins so that name lands exactly under the pointer.
  • Optionally removes each winner, so you can run a whole raffle down to the last name.
slice = 360° / number of names
centre of slice i sits at (i × slice + slice / 2) clockwise from the top

to land slice i under the pointer:
  rotation ≡ −(i × slice + slice / 2)  (mod 360°)
  plus whole extra turns for the spin

Worked example

Six names on the wheel, and the draw selects the fourth.

  1. slice = 360 / 6 = 60°
  2. the fourth name is index 3, so its centre sits at 3 × 60 + 30 = 210° from the top
  3. rotation needed ≡ −210 ≡ 150° (mod 360)
  4. add six whole turns: 6 × 360 + 150 = 2310°

The wheel stops with the fourth name centred exactly under the pointer, having turned six and a bit times on the way.

Reading the result

  • Because the winner is chosen before the spin, the odds do not depend on where the wheel started or how it is drawn. Every name has exactly a 1/n chance regardless of slice colour or position.
  • Removing winners as you go makes each subsequent draw uniform over whoever is left, which is what a raffle needs.
  • Names longer than twelve characters are shortened on the wheel face only; the full name is used everywhere else.

Common questions

Does the wheel favour bigger-looking slices?
There are no bigger slices — every name gets exactly 360/n degrees. And since the winner is drawn before the wheel moves, the geometry cannot influence the outcome at all.
Can I use it for classroom or team picking?
Yes, that is what it is for. Turn on removing the winner if you want everyone picked once before anyone is picked twice.