Enter options and spin to land on one

Give every non-empty list entry one equal wheel segment and choose a segment with a browser-generated random value.

freeworks offlinenothing uploaded
ToolSpin the Wheel
Options0 options

How it works

Blank rows are removed, then floor(Math.random() × number of options) chooses an index with one interval of equal width per entry. The animation adds five full rotations and lands 15–85% inside the selected slice so the pointer does not stop exactly on an edge.

  • At least two entries are required for a choice.
  • Winner removal starts off; turning it on samples without replacement on subsequent spins.

Worked example

Four equal slices
Input
											Options: ["Draft","Review","Test","Deploy"]
Random value: 0.62
										
Output
												Selected index: 2
Winner: Test
											

When to use this

Classes select names, retrospectives pick equal-priority prompts, and party games remove each chosen participant before another round.

Edge cases

  • Two identical labels occupy two different slices and therefore receive two chances.
  • Whitespace-only rows disappear instead of creating invisible wheel segments.
  • ECMAScript does not require Math.random to be cryptographically secure, so this is unsuitable for audited prizes or security decisions.

References