Spin the Wheel

Add options and spin

Type one option per line and press Spin. The wheel turns for about four seconds, then names a result. The extra rotation comes from Math.random. Empty lines are dropped.

How to use

  1. Edit the text area. It starts with four lines: Alice, Bob, Charlie, and Diana. Keep one option per line.
  2. Leave blank lines if you want. A line that is empty after trimming is ignored and does not get a slice.
  3. Click Spin. You need at least two real options, or the page alerts you to add more. If a spin is already running, another click does not start a second one.
  4. Wait about four seconds. The result line then reads Result and the chosen text. A long label may be shortened on the wheel drawing, but the result uses the full line.

When it helps

Picking who goes first, which topic the group takes, or which name on a short list gets the next turn. Spin again and the same list is still there. The winner is not removed.

Several groups at once are a different draw. The team generator shuffles a name list and deals people into a number of teams you set, from 2 to 12. A two-way call with nothing to type fits the coin flip, which returns heads or tails.

Limits

Math.random chooses how far the wheel travels, on top of a few full turns, and the animation eases out over four seconds. That is a party draw, not a recorded lottery. There is no weight field and no history of earlier spins.

Leave the page and the box returns to Alice, Bob, Charlie, and Diana unless you type the list again. Labels painted on the wheel are cut to 14 characters. Two identical lines are two slices, so typing a name twice makes it more likely. One option, or a box of only blank lines, will not spin.

Questions

How long does the spin last?

About four seconds. The animation runs for 4000 milliseconds and then the result line is written. You cannot skip to the end with a second control.

Does a blank line count as an option?

No. Empty lines are removed before the wheel is built. You still need two lines that contain text.

Can I make one name more likely?

Not with a weight. The only way to give a name more slices is to type that name on more than one line. Each non-empty line is one slice.