Weighted decision wheel
A weighted spinner: one candidate per line, optionally 名称*权重, where the weight sets both the sector angle and the odds. The winner and stop angle come from a seeded pseudo-random stream, so the same seed with the same list always gives the same result; recent history is included too.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
One option per line, at least 2 and at most 64; write * number (e.g. Sushi*2) to double its slice and its odds.
Result
The winner, the stop angle and the slice spans all come from a seeded pseudo-random stream, so they can be reproduced.
Add your options to spin the wheel
What this tool does
- List the choices you are stuck between and let the wheel decide
- Add `*weight` to a line to give your favourite a bigger slice (e.g. Sushi*2)
- Pin the random seed to reproduce the same spin and share it for review
Example
Input
吃饭 散步*2 看电影
Output
本次结果:看电影 停止角度:1112.6°(指针位于正上方) 扇区共 3 个: 吃饭 0°–90°(25%) 散步 90°–270°(50%) 看电影 270°–360°(25%) 历史:散步、散步、看电影、吃饭、散步
This is the real output for the default seed (20260101) and 5 history entries — you can reproduce it on the page.
Frequently asked questions
Is the spin really random, and why is it always the same?
The numbers come from a built-in xorshift32 pseudo-random stream. An empty seed means the fixed default 20260101, so the same seed plus the same options always give the same result — that is what makes it reproducible. Change the seed, or press "Spin again with a new seed" (20260102, 20260103, ...), to get a different spin.
How are the weights computed?
Every option has weight 1 by default; writing name*number changes it (e.g. Sushi*2). Slice span = weight ÷ total weight × 360°. In the example 1 + 2 + 1 = 4, so Sushi gets 180° (50%) while the other two get 90° (25%) each. Weights must be greater than 0.
How many options are allowed?
At least 2 and at most 64; blank lines are ignored and a name cannot be empty. Out-of-range values produce an explicit error message instead of a silent truncation.
What is the history list?
It is not a log of six real spins: the next N results are drawn from the same random stream to show the distribution behind your seed. Set the history size to 0 to see only the current spin.
Are my options uploaded?
No. The whole pipeline is a pure function running in your browser (including the wheel geometry and SVG paths); there are no network requests and no access to clipboard, location or other device data.
Keywords:Weighted decision wheeldecision-wheelofflinedeterministic