How randomness works
Spin the Wheel uses crypto.getRandomValues(), which is cryptographically secure browser randomness.
We never use Math.random() for winner selection.
What happens on each spin
1. Active entries are collected (disabled/eliminated entries are excluded).
2. A winner is selected immediately with crypto-random values.
3. The wheel animation is calculated to land on that selected winner.
4. The result popup and history log show the winner.
Independent spins
Every spin is independent. Previous winners do not influence future outcomes unless you explicitly use elimination mode, where winners are removed from the next draw by design.
Weighted mode transparency
When weighted mode is active, each entry’s chance is proportional to its weight using:
P(entry) = weight / totalWeight.
The app always displays a visible weighted badge and a probability inspector so viewers can verify the current rules.
Auditability
- Each result includes a timestamp.
- Win counts are tracked per entry.
- Share URLs include schema version and checksum validation to detect corruption.