SpinForFun.app
Create wheel
Home / How the randomness works

How the randomness works

Exactly what happens when you press SPIN, why streaks are normal, and where these wheels should not be used.

Quick answer

Every spin draws a value from your browser's built-in random number generator and maps it onto slices of equal size, so each option carries an identical chance and no spin is influenced by the one before it.

The actual mechanism

When you press SPIN, three things happen. The wheel is given a random number of full turns plus a random final angle, so the animation looks different every time. That final angle is then normalised to a value between 0 and 360 degrees. Finally, that angle is divided by the size of one slice to find which slice sits under the pointer.

The important detail is the order: the landing position is computed from the random draw, and the winner is read off the result. The animation follows the outcome rather than producing it. This means the spin cannot be influenced by how or where you tap, how long you hold, or how fast your device renders the animation.

Equal slices, equal odds

Every option you add gets an arc of exactly 360 ÷ n degrees. With four options each occupies 90 degrees and carries a 25% chance; with seven options each occupies about 51.43 degrees and carries roughly a 14.3% chance. There is no weighting, no bias toward the first or last entry, and no adjustment based on what came up previously.

If you want a weighted wheel, add the same option more than once. Two slices reading "Yes" among six total slices gives that answer a one-in-three chance. This is deliberate rather than a workaround — an explicit duplicate is visible on the wheel, so everyone watching can see the odds rather than having to trust a hidden setting.

Why you get streaks

Spins are independent, which means the wheel has no memory and no tendency to even things out. Across ten spins of a two-option wheel there is roughly a 47% chance of a run of four or more identical results somewhere in the sequence. Streaks are a property of genuine randomness, not evidence of a fault — a sequence that alternated neatly would be the suspicious one.

This is also why running best-of-three does not make an answer more accurate. There is no underlying truth for repeated spins to converge on. What repetition does do is make a result feel more deliberate, which is genuinely useful when a group needs to accept it.

Where these wheels should not be used

Browser random number generators are designed to be fast and statistically well-distributed. They are not certified, not audited by a third party, and not accompanied by the guarantees that regulated processes require. Do not use SpinForFun for gambling, public lotteries, legal or judicial selection, clinical trial randomisation, or anything else where the method of randomisation must be demonstrable to a regulator. For those, use a provider built and audited for the purpose.

For a classroom, a giveaway, a party game, or deciding what to eat, it is entirely fit for purpose — and unlike a physical wheel, it cannot be nudged by whoever is spinning it.

You can check this yourself

The spin logic is plain JavaScript served unminified at /assets/wheel.js. Nothing is obfuscated and nothing is computed on a server, so you can read precisely how a winner is chosen. Open any wheel with your browser's network tab active and you will see no requests leave the page when you spin.

Written and maintained by Vishal, Founder, SpinForFun·Last reviewed ·How the randomness works