How to Tell If a Spin Wheel Is Really Random

Three things decide whether a spin wheel is fair: where its random number comes from, how that number becomes a slice, and who runs the spin. Watching a few spins tells you almost nothing about the first two. This guide shows what to check instead, how large a test has to be before it means anything, and what no test on a web page can show.

By GiddyWheelPublished Updated 13 min read

Random is really three questions

When someone asks whether a wheel is random, they are usually asking one of three different things. Each fails in its own way, and watching the wheel spin answers none of them.

  1. The number. Every spin starts from a random number made by the browser or by a server. If that number is weak or guessable, nothing built on top of it can be trusted.
  2. The mapping. The number has to be turned into a slice. Careless arithmetic, unequal slices and hidden weights can make some slices win more often even when the number itself is excellent.
  3. The people. A wheel cannot show who spun it, how many times, or whether the list was edited first. In a prize draw this is where most real disputes start.

The sections below take them in that order, then look at what a test you run yourself can and cannot show, and end with a checklist you can use on any wheel, including ours.

Where the random number comes from

A web page has two built-in ways to get a random number. The older and more common one is Math.random(). The language standard (ECMAScript) only requires it to return a number that is at least 0 and below 1, “chosen randomly or pseudo randomly with approximately uniform distribution over that range, using an implementation-defined algorithm or strategy.” In plain words, each browser engine picks its own method, and the standard does not say which. MDN adds that Math.random() “does not provide cryptographically secure random numbers” and warns against using it for anything related to security.

The second way is crypto.getRandomValues(), which fills a list of numbers with bytes from the browser's cryptographic generator. The Web Crypto specification tells browsers to “Fill bytes with cryptographically secure random bytes.” What that means in practice is spelled out on MDN: browsers use “a pseudo-random number generator seeded with a value with enough entropy,” and the specification sets no minimum amount of entropy.

So even the better option is a carefully seeded program, not a physical noise source. RANDOM.ORG explains the consequence: a pseudo-random generator is deterministic, meaning the same sequence can be reproduced if the starting point is known, so everything depends on that starting point staying unknowable. This is why careful writing says a generator is designed to be unpredictable, and does not say it is impossible to predict.

Does the difference show up in a result? For a classroom or a party wheel, no. Both produce slices that look evenly spread, and no test you could run by hand would tell them apart. But quality has varied between engines and over time. Chrome's engine, V8, used a generator called MWC1616 until late 2015. Its own team wrote that it offered sub-par quality, able to produce only about 4.3 billion different values where a double-precision number could take about 4.5 quadrillion, and replaced it with xorshift128+, which Firefox and Safari also adopted. The replacement is a big improvement, but in the V8 team's words it is “still not cryptographically secure.”

That gap matters when someone has a reason to predict or steer the next result, as in a prize draw. Math.random() was never designed to resist that, and crypto.getRandomValues() was.

To find out which one a wheel uses, start with what the site says. A statement that names the source is a claim you can test; “advanced algorithm” is not. On a desktop browser you can also open the developer tools, search all scripts for getRandomValues and Math.random, and see which turn up. Treat that as a hint only: Math.random() appears in plenty of code that has nothing to do with the spin, and finding a name does not show where its output goes.

How a good number still gives a bad result

A random number is not yet a slice. The code that turns one into the other can go wrong in four ways, and none of them shows in the animation.

Rounding that favors small results

A common shortcut reduces a random whole number to a slice position with the remainder operator (number % slices). That is exactly fair only when the number of possible values divides evenly by the number of slices. When it does not, the first few slices get one extra value. The Wikipedia article on the Fisher–Yates shuffle has a clean example: take a source that gives 0 to 99, reduce it to 0 to 15 with a remainder, and the results 0 to 3 turn up about 17% more often than the others, because 16 does not divide 100 evenly.

How uneven the remainder shortcut is (calculated, not measured)

Random sourceSlicesSource values behind each sliceFavored slices win more often by
8-bit number (256 values)737 for 4 slices, 36 for the other 32.8%
8-bit number (256 values)1003 for 56 slices, 2 for the other 4450%
32-bit number (about 4.3 billion values)7613,566,757 for 4 slices, 613,566,756 for the other 31 in 614 million
32-bit number (about 4.3 billion values)10042,949,673 for 96 slices, 42,949,672 for the other 41 in 43 million

A source with few values makes the skew obvious. A 32-bit source, such as a list of 32-bit integers filled by crypto.getRandomValues(), makes it far too small to measure: a test of 50,000,000 spins could not see a 1-in-43-million skew. So this is a design question to ask about, not something you can test your way into. The standard fix is to throw away the few source values that fall in the incomplete last block and draw again, which is called rejection sampling. For comparison, GiddyWheel's wheel has no remainder step at all: it turns 53 random bits into a number between 0 and 1 and matches that to a slice by weight. The team generator and the Secret Santa generator shuffle with the redraw rule.

Slices that are not equal, or not what they seem

A wheel can draw slices of the same size but weight them differently, or list one entry twice. Take a wheel of eight different names and add a second “Maya.” It now has nine slices, Maya holds two of them (22.2%), and everyone else holds 11.1% instead of 12.5%. Look for visible weights or slice sizes, and for duplicates in the list.

A simulation instead of a decided result

Some wheels choose the winner first and then animate it. Others simulate a spinning disc and let the physics decide where it stops; Wheel of Names, for example, says in its FAQ that the wheel's physics are driven by crypto.getRandomValues(). Both designs can be fair, but in the second one the chance of each slice depends on details of the simulation, such as the starting speed and the friction, so the designer has to measure it instead of assuming it. GiddyWheel's wheel is the first kind: the winner is chosen before the wheel turns, so the turning only shows an outcome that was settled a moment earlier, and spinning harder or longer cannot change it.

Avoiding repeats on the quiet

Independent spins can repeat. On a wheel of eight equal slices, a given spin lands on the same slice as the one before it 1 time in 8, and in ten spins the chance of at least one back-to-back repeat is about 70%. A wheel that never repeats is not making independent picks. That can be a deliberate, labeled mode such as elimination, and for a single draw it makes no difference. But if a wheel does it silently and cycles through every entry before repeating, the last pick of each cycle is predictable, and repeated draws no longer behave like separate spins.

What a test of your own can and cannot show

A fair wheel does not give even counts. It gives counts that wander around the fair share by an amount you can calculate, and that amount shrinks slowly as spins pile up. The picture shows the range in which one slice of a fair eight-slice wheel stays about 19 times out of 20. These are exact binomial ranges that we calculated, not measurements.

Ordinary range of one slice's share as spins pile upFour horizontal bars on a scale from 0% to 25%, with a dashed line at the fair share of 12.5%. After 80 spins the range is 6.3% to 20.0%. After 800 spins the range is 10.3% to 14.9%. After 8,000 spins the range is 11.8% to 13.2%. After 80,000 spins the range is 12.3% to 12.7%.fair share 12.5%80 spins6.3% to 20.0%800 spins10.3% to 14.9%8,000 spins11.8% to 13.2%80,000 spins12.3% to 12.7%0%5%10%15%20%25%
One slice of a fair eight-slice wheel: the range its share stays in about 19 times out of 20. Ten times the precision costs a hundred times the spins: the range is about 2.3 points either side of the fair share at 800 spins and about 0.2 at 80,000.

The same ranges as counts (calculated, not measured)

SpinsWins per slice if fairOrdinary range of winsSame range as a share
80105 to 166.3% to 20.0%
80010082 to 11910.3% to 14.9%
8,0001,000942 to 1,05811.8% to 13.2%
80,00010,0009,817 to 10,18412.3% to 12.7%

Read it like this. After 80 spins, one slice with 5 wins and another with 16 are both ordinary. After 800 spins, a slice you picked in advance reaching 130 wins would happen to a fair wheel about once in 869 tries, which would be worth a second look. Gaps smaller than the range tell you nothing. That is why a handful of spins can never show that a wheel is biased, and why a run of four identical results shows nothing either.

A test has a second requirement that is easy to miss: it has to run the same code as the wheel you are judging. A separate fairness page with its own generator tells you about that generator, not about the wheel. The randomness audit on this site runs the wheel's own selection code, including the step that works out where the pointer stops, which is how it can check that the winner chosen and the slice under the pointer never differ.

Reading a p-value without fooling yourself

If you run a chi-square test, you get a p-value: the chance that a perfectly working generator would produce counts at least as far from the expected ones as yours. The American Statistical Association's statement is blunt about what that number is not: “P-values do not measure the probability that the studied hypothesis is true, or the probability that the data were produced by random chance alone.”

In practice, a fair wheel gives a p-value below 0.05 about once in 20 tests, so one low value is a reason to run the test again, not a verdict. The test also needs enough data: NIST's handbook lists among its weaknesses that it “requires a sufficient sample size in order for the chi-square approximation to be valid.” A common rule of thumb is an expected count of at least 5 wins for every slice.

What a 50,000,000-spin test looked like

On November 2, 2026 we ran 50,000,000 spins through the same selection code the live wheel uses: 5 wheels, 10 batches each, 1,000,000 spins per batch. The wheels had 8 equal slices, 16 equal slices, 2 slices weighted 3 to 1, 3 slices weighted 1 : 2 : 7, and the 8-entry sample wheel from the giveaway picker, whose entries carry different weights. This is our own measurement. It ran in Node.js v23.11.0, not in a visitor's browser, and the raw counts behind every number below are published on the audit page, so you can recompute them.

p-values of the 50 batchesTwenty bars, each 0.05 wide, from 0 to 1, showing how many of the 50 batches had a p-value in that range. The first bar, for p-values below 0.05, holds 3 batches. A dashed line marks the 2.5 batches per bar expected if the generator has no fault.3 batches below 0.05even spread024600.250.50.751p-value of the batch
Each of the 50 batches was tested on its own, by chi-square against the wheel's weights. With no fault, p-values spread evenly, so each bar averages 2.5 batches (the dashed line). The highlighted bar counts the batches with p below 0.05. Counts are from the published run.

In this run, 3 of the 50 batches had p below 0.05 and 1 was below 0.01; the lowest was 0.007. A flawless generator would be expected to give 2.5 batches below 0.05 and 0.5 below 0.01. It would show 3 or more low batches out of 50 in about 46% of runs, and none at all in about 1 run in 13, so this result is unremarkable in both directions.

Every batch stayed inside the 4-standard-deviation band the audit page uses, and the widest gap between any slice's share and its weight in any batch was 0.115 percentage points. None of the 50,000,000 spins ended with the pointer on a different slice than the one chosen (0 mismatches). On the 8-slice wheel, 12.51% of spins landed on the slice of the spin before, against 12.50% expected for independent spins.

What this does and does not show

It shows that the selection code, run 50,000,000 times, produced counts consistent with its weights and never lost track of the winner. It does not show that your browser's generator is flawless, that the page you are using runs this code, or that nobody spun twice. The audit page lists these limits in its own section.

The part no test can see

Everything above is about the wheel. A prize draw also has people around it, and a web page cannot show what they did.

  • Re-spinning. A host can spin until a favorite wins and share only that spin. A saved replay carries a signature that exposes later edits, but it cannot show how many spins came before it.
  • Editing the list. Names can be added or removed after entries closed. Show the list before the spin and keep a copy.
  • Eligibility. A wheel draws from the names it is given. Checking that entrants qualify happens outside it.
  • Recording. A screen recording of one uninterrupted spin, with the list visible, is stronger evidence than any claim about software.

These are process fixes, and they are cheap: announce the rule, show the list, spin once, record it. For a giveaway, check the platform's rules and the law where you live yourself; no wheel can do that for you. The giveaway picker can draw on the server instead of in the browser, but the same limits apply.

A ten-point checklist for judging any wheel

Use this when a wheel is going to decide something that matters. A wheel that cannot answer most of these questions has told you something.

  1. Does it name its source of randomness? A statement such as crypto.getRandomValues() is a claim you can check. “Advanced algorithm” is not.
  2. Is that source built to resist guessing? crypto.getRandomValues() is; Math.random() is not. For a casual spin either looks fine. For prizes, prefer the first.
  3. Can you see slice sizes or weights? Equal-looking slices with hidden weights are the simplest way to rig a wheel.
  4. Are duplicates visible? Two entries with the same name double that name's chance.
  5. Is the result decided before the animation, and does the site say so? If a simulation decides it, ask how its odds were measured.
  6. Can a result repeat? Independent spins can. If a wheel never repeats, it should say it uses an elimination or no-repeat mode.
  7. Does its test page run the same code as the live wheel, and publish counts you can recompute? A bare “passed” is not a result.
  8. Does it say what its test cannot show? A page that lists its limits is easier to trust than one that does not.
  9. Does it avoid absolute claims such as “impossible to predict” or “unhackable”? No test can support them.
  10. Does it say who runs it, and when the page was last updated? A named site, a contact address and a date show that someone stands behind the words.

Frequently asked questions

Is Math.random() good enough for a classroom wheel?

For what you can see, yes: its slices look as evenly spread as any other source's. It was not designed to resist prediction, and MDN says not to use it for anything related to security. So use crypto.getRandomValues() for a prize draw, or anything else where someone could gain from guessing the next result.

Can a spin wheel be rigged?

Yes, in ways that have nothing to do with the random number: hidden weights, duplicate entries, a result picked by the host, or an animation that ends somewhere other than the winner the code chose. Points 3, 4, 5 and 7 of the checklist cover the first, second and last of these. A web page cannot show that the host did not re-spin.

Does spinning harder or longer change who wins?

On a wheel that decides the result first, no: the animation replays a result that already exists, so how long or how fast it turns changes only how it looks. On a wheel that simulates physics, the starting speed is part of what decides the outcome, so how that speed is chosen matters. Ask which kind a wheel is.

Why did my wheel land on the same slice three times in a row?

Because independent spins do that. On an eight-slice wheel, any given three spins all match about 1 time in 64, and over a long session that happens somewhere. A wheel that never did it would be the one to doubt. The Yes or No wheel shows it quickly: two answers repeat all the time.

How many spins do I need to test a wheel?

It depends on how small a skew you want to catch. On eight slices the ordinary range is about 2.3 points either side of the fair share at 800 spins, 0.7 at 8,000 and 0.2 at 80,000, and a skew smaller than the range cannot be told from luck. The audit page's sample-size section shows how many spins other wheels and band widths need.

Sources

Each page below was opened and read before it was cited. When a number comes from our own testing rather than from one of these pages, the text says so.

  1. ECMAScript language specification: Math.random: what the standard requires of Math.random(): a number from 0 up to 1 from an implementation-defined algorithm
  2. MDN: Math.random(): that Math.random() is not cryptographically secure and should not be used for security
  3. MDN: Crypto.getRandomValues(): how browsers implement getRandomValues() and that no minimum amount of entropy is mandated
  4. W3C: Web Cryptography API: the step in which getRandomValues() fills the array with cryptographically secure bytes
  5. RANDOM.ORG: Introduction to Randomness and Random Numbers: that a pseudo-random generator is deterministic: the same sequence can be reproduced if the starting point is known
  6. V8 blog: There's Math.random(), and then there's Math.random(): V8's switch from MWC1616 to xorshift128+ in late 2015, and that the replacement is still not cryptographically secure
  7. Wikipedia: Fisher–Yates shuffle, Modulo bias: the example of reducing 0 to 99 to 0 to 15 with a remainder, and the redraw fix
  8. Wheel of Names: Randomness FAQ: an example of a wheel whose physics are driven by the browser's cryptographic random generator
  9. NIST/SEMATECH e-Handbook of Statistical Methods: Chi-square goodness-of-fit test: that the chi-square test needs a sufficient sample size
  10. American Statistical Association: Statement on statistical significance and p-values: what a p-value does and does not measure

Try it on a wheel

More from the blog