Run a random draw with a spinning wheel

Lunch order, raffle prize, who goes first — list the entries and spin. Uniform odds, one winner per spin.

Tools used in this guide

The job

Any fair draw needs two properties: every entry has equal probability, and everyone can watch it happen. The wheel shows the pick physically — the pointer ends up on the winner.

Entries and a spin

List 2–50 entries, one per line (labels trimmed to 40 characters), then spin. The winner is picked by Math.random at click time; the animation lands the pointer on it — the outcome isn't decided by the animation.

Worked example

Five teammates on a wheel with equal slices: each has a 1-in-5 chance every spin. Repeat spins are independent — running it twice can return the same name, which is expected for fair odds, not a bug.

Scope

2–50 entries. Not cryptographically random — fine for a raffle among friends, not for contests with real stakes. Entries stay in the tab; nothing is recorded or sent.