How Fair Is a Spin the Wheel? A Public Randomness Test
Every spin on GiddyWheel starts with one random number from a cryptographic generator: your browser's crypto.getRandomValues(), or our server's when Server draw is on. That number is matched to a slice by weight and the winner is fixed; only then does the wheel turn. The turn is the picture of a result that already exists, so a longer or faster spin cannot change who wins.
This page lets you check the selection yourself. Run the wheel's own code for thousands of spins in your browser, compare the wins with the weights, and read how the test works, what a very large published run looked like, and why a result close to the weights still cannot show that a wheel is fair.
Want the plain-English version first? Our guide How to Tell If a Spin Wheel Is Really Random covers what to look for on any wheel, and where a test like this one fits.
Run the Test in Your Browser
Choose a wheel, the number of spins in a round and the number of rounds. Every simulated spin goes through the wheel's own selection code, with random numbers from your browser's crypto.getRandomValues(). The test runs in this tab and nothing is sent anywhere.
Each round is a separate sample with its own p-value; the table adds all rounds together.
Running the first test…
How the Test Works
The test has no random number generator of its own. Each simulated spin calls the same functions that a real spin calls, one after the other, and then counts what came out.
The wheel draws a random number
getCryptoRandom() asks crypto.getRandomValues() for 64 random bits, keeps 53 of them and turns them into a number from 0 up to, but not including, 1. Math.random() is not used anywhere in a spin.
The number is matched to a slice by weight
pickByWeights() adds up the weights, multiplies the random number by that total, and walks along the slices until the running total reaches the result. A slice's chance is its weight divided by the total weight, and a weight below 0.01 counts as 0.01.
A stopping point is chosen inside the winner
The same function picks a point inside the middle 70% of the winning slice, so the pointer never rests on an edge between two slices.
The wheel turns to that point
spinTargetDeg() works out the angle the animation ends on, for a spin length of 2 to 10 seconds and from wherever the wheel last stopped. The winner was fixed in step 2, so the spin length only changes how many turns the wheel makes.
The test checks where the pointer ended
landedSliceIndex() finds the slice under the pointer at the final angle. It has to be the slice chosen in step 2, and the test counts every spin where it is not.
The wins are counted and compared with the weights
After all the spins, the test compares each slice's wins with its weight, tests all the slices together with a chi-square test, and checks how often the same slice won twice in a row.
| Measure | The question it asks | How it is judged |
|---|---|---|
| Wins per slice | Do the wins follow the weights? | A chi-square test on all the slices together, with the number of slices minus 1 degrees of freedom. A p-value below 0.01 makes the page suggest running the test again. |
| Largest deviation | Is any one slice further from its weight than chance explains? | Each slice's share is compared with a band of ±4 standard deviations around the share its weight predicts. |
| Same slice twice in a row | Does one spin influence the next? | The observed rate is compared with the chance of it for independent spins, which is the sum of the squared shares. |
| Landing check | Does the pointer end on the slice that was chosen? | This one is not a statistic: the number of mismatches has to be exactly 0. |
How to Read a Chi-Square Result
A chi-square test measures how far the wins are from the counts the weights predict, adding up one term for each slice. The p-value turns that distance into a chance: how often a generator with no fault would land at least this far away.
| Wheel | Degrees of freedom | p = 0.05 | p = 0.01 |
|---|---|---|---|
| 2 slices | 1 | 3.84 | 6.63 |
| 3 slices | 2 | 5.99 | 9.21 |
| 4 slices | 3 | 7.81 | 11.34 |
| 8 slices | 7 | 14.07 | 18.48 |
| 12 slices | 11 | 19.68 | 24.72 |
| 16 slices | 15 | 25.00 | 30.58 |
How Many Spins Are Enough?
More spins do not make a wheel fairer; they make the test sharper. After a given number of spins, a slice's share of the wins is expected to stay within ±4 standard deviations of the share its weight predicts, and that band narrows with the square root of the number of spins.
| Spins | 6.25% slice (16 equal slices) | 12.5% slice (8 equal slices) | 25% slice (the small slice of 3 : 1) |
|---|---|---|---|
| 1,000 | ±3.06 | ±4.18 | ±5.48 |
| 10,000 | ±0.97 | ±1.32 | ±1.73 |
| 100,000 | ±0.31 | ±0.42 | ±0.55 |
| 1,000,000 | ±0.10 | ±0.13 | ±0.17 |
| 10,000,000 | ±0.03 | ±0.04 | ±0.05 |
A Published Result: 50 million Spins on November 2, 2026
We ran the test at full size on November 2, 2026 (UTC) with Node.js v23.11.0: 10 batches of 1,000,000 spins for each of 5 wheels, which is 10,000,000 spins per wheel. The table and the charts are worked out from the counts of that run. It is the first complete run, published as it came out and not the best of several. Node.js draws from its own cryptographic source, so this run says nothing about your browser's source; the live test above is how you check that.
| Wheel | Spins | Chi-square (df) | p-value | Largest deviation | Same slice twice: actual / expected | Landing mismatches |
|---|---|---|---|---|---|---|
| 8 equal slices (12.5% each) | 10,000,000 | 3.13 (7) | 0.8728 | ±0.010 pts (z 1.0) | 12.508% / 12.500% | 0 of 10,000,000 |
| 16 equal slices (6.25% each) | 10,000,000 | 11.61 (15) | 0.7086 | ±0.012 pts (z 1.6) | 6.245% / 6.250% | 0 of 10,000,000 |
| 2 slices, weights 3 : 1 (75%, 25%) | 10,000,000 | 0.67 (1) | 0.4142 | ±0.011 pts (z 0.8) | 62.474% / 62.500% | 0 of 10,000,000 |
| 3 slices, weights 1 : 2 : 7 (10%, 20%, 70%) | 10,000,000 | 0.10 (2) | 0.9494 | ±0.004 pts (z 0.3) | 53.999% / 54.000% | 0 of 10,000,000 |
| 8 entries, the giveaway sample (total weight 12) | 10,000,000 | 7.66 (7) | 0.3639 | ±0.013 pts (z 1.5) | 15.272% / 15.278% | 0 of 10,000,000 |
8 equal slices
12.5% each; 10,000,000 spins
- Slice 1 (weight 1)12.496% actual, 12.500% expected
- Slice 2 (weight 1)12.504% actual, 12.500% expected
- Slice 3 (weight 1)12.505% actual, 12.500% expected
- Slice 4 (weight 1)12.490% actual, 12.500% expected
- Slice 5 (weight 1)12.510% actual, 12.500% expected
- Slice 6 (weight 1)12.506% actual, 12.500% expected
- Slice 7 (weight 1)12.496% actual, 12.500% expected
- Slice 8 (weight 1)12.491% actual, 12.500% expected
Chi-square p-value of each of the 10 batches: 0.29, 0.13, 0.91, 0.34, 0.15, 0.50, 0.91, 0.92, 0.61, 0.87
16 equal slices
6.25% each; 10,000,000 spins
- Slice 1 (weight 1)6.248% actual, 6.250% expected
- Slice 2 (weight 1)6.255% actual, 6.250% expected
- Slice 3 (weight 1)6.250% actual, 6.250% expected
- Slice 4 (weight 1)6.244% actual, 6.250% expected
- Slice 5 (weight 1)6.238% actual, 6.250% expected
- Slice 6 (weight 1)6.261% actual, 6.250% expected
- Slice 7 (weight 1)6.255% actual, 6.250% expected
- Slice 8 (weight 1)6.244% actual, 6.250% expected
- Slice 9 (weight 1)6.246% actual, 6.250% expected
- Slice 10 (weight 1)6.252% actual, 6.250% expected
- Slice 11 (weight 1)6.240% actual, 6.250% expected
- Slice 12 (weight 1)6.251% actual, 6.250% expected
- Slice 13 (weight 1)6.262% actual, 6.250% expected
- Slice 14 (weight 1)6.249% actual, 6.250% expected
- Slice 15 (weight 1)6.247% actual, 6.250% expected
- Slice 16 (weight 1)6.258% actual, 6.250% expected
Chi-square p-value of each of the 10 batches: 0.60, 0.26, 0.21, 0.41, 0.50, 0.80, 0.30, 0.42, 0.17, 0.74
2 slices, weights 3 : 1
75%, 25%; 10,000,000 spins
- Slice 1 (weight 3)74.989% actual, 75.000% expected
- Slice 2 (weight 1)25.011% actual, 25.000% expected
Chi-square p-value of each of the 10 batches: 0.18, 0.15, 0.83, 0.94, 0.71, 0.31, 0.64, 0.34, 0.50, 0.27
3 slices, weights 1 : 2 : 7
10%, 20%, 70%; 10,000,000 spins
- Slice 1 (weight 1)10.000% actual, 10.000% expected
- Slice 2 (weight 2)19.996% actual, 20.000% expected
- Slice 3 (weight 7)70.004% actual, 70.000% expected
Chi-square p-value of each of the 10 batches: 0.62, 0.34, 0.29, 0.35, 0.65, 0.72, 0.01, 0.30, 0.50, 0.14
8 entries, the giveaway sample
total weight 12; 10,000,000 spins
- Slice 1 (weight 3)24.998% actual, 25.000% expected
- Slice 2 (weight 2)16.666% actual, 16.667% expected
- Slice 3 (weight 1)8.325% actual, 8.333% expected
- Slice 4 (weight 1)8.320% actual, 8.333% expected
- Slice 5 (weight 1)8.345% actual, 8.333% expected
- Slice 6 (weight 2)16.679% actual, 16.667% expected
- Slice 7 (weight 1)8.324% actual, 8.333% expected
- Slice 8 (weight 1)8.343% actual, 8.333% expected
Chi-square p-value of each of the 10 batches: 0.67, 0.69, 0.71, 0.29, 0.02, 0.93, 0.01, 0.36, 0.60, 0.55
Repeat the Test in Your Own Console
You do not have to take the page's word for any of this. The script below runs on your own machine, reads nothing from the page and makes no network request. Open your browser's developer console (F12, or Cmd+Option+J in Chrome on a Mac), paste the script, press Enter, and change the weights first if you want to test your own wheel.
(() => {
const weights = [3, 1]; // the weights of your wheel, in wheel order
const spins = 1000000; // how many spins to simulate
const effective = weights.map((w) => Math.max(0.01, w)); // the wheel counts a weight below 0.01 as 0.01
const total = effective.reduce((sum, w) => sum + w, 0);
const counts = effective.map(() => 0);
const bits = new Uint32Array(2);
for (let i = 0; i < spins; i++) {
crypto.getRandomValues(bits);
// 53 random bits as a number from 0 up to, but not including, 1 (what the wheel does)
const value = ((bits[0] >>> 5) * 67108864 + (bits[1] >>> 6)) / 9007199254740992;
const target = value * total;
let running = 0;
let winner = effective.length - 1;
for (let k = 0; k < effective.length; k++) {
running += effective[k];
if (target <= running) {
winner = k;
break;
}
}
counts[winner]++;
}
let chiSquare = 0;
const rows = effective.map((w, k) => {
const expected = (spins * w) / total;
chiSquare += (counts[k] - expected) ** 2 / expected;
return {
slice: k + 1,
weight: weights[k],
wins: counts[k],
"actual share": ((100 * counts[k]) / spins).toFixed(3) + "%",
"expected share": ((100 * w) / total).toFixed(3) + "%",
};
});
console.table(rows);
const df = effective.length - 1;
// A close estimate of the value that a healthy generator stays under in 99 runs out of 100.
const limit = df * Math.pow(1 - 2 / (9 * df) + 2.3263 * Math.sqrt(2 / (9 * df)), 3);
console.log("chi-square = " + chiSquare.toFixed(2) + ", " + df + (df === 1 ? " degree" : " degrees") + " of freedom");
console.log("about 99 runs in 100 of a healthy generator stay under " + limit.toFixed(1));
})();If the console asks you to type "allow pasting" first, do that. The script prints a table of the wins per slice next to the share each weight predicts, then the chi-square value with the limit a healthy generator stays under in about 99 runs out of 100. The chi-square changes every run, so run it a few times before you read anything into one value.
What a Test Like This Cannot Tell You
A result close to the weights says that the wins match what the weights predict. It does not show that the random algorithm is fair in any absolute sense, and it says nothing about a single spin.
| Limit | What it means for you |
|---|---|
| Matching the weights does not settle fairness | A distribution test can reveal a bias, but it cannot show that none exists. A generator can pass and still be flawed in ways this test does not look for. |
| It tests code, not one spin | Nothing here says anything about the spin you watched. A replay link records one spin and cannot show how many spins the host made before it. |
| Your browser, not every browser | The random bits come from your browser and your operating system. The test checks the one you are using, and the published run used Node.js. |
| The list and the weights are yours | A wheel is exactly as fair as the entries and weights it is given: a name typed twice owns two slices, and a host can leave someone off. |
| Chance can look like a pattern | Even a healthy generator gives a low p-value now and then and produces streaks of the same slice. Judge by repeated runs, not by one. |
| Server draw is not covered | With Server draw on, our server runs the same selection code with its own generator. This page tests the browser's generator, not the server's. |
Randomness Test FAQ
Short answers about how a spin is chosen, what the test measures and what it leaves out.
Is the spin the wheel on GiddyWheel random?
Each spin takes one number from crypto.getRandomValues(), the cryptographic random number generator built into your browser, and maps it to a slice by weight. Math.random() is not used. The test on this page runs that same selection and shows how the wins spread, and the console script lets you repeat it without taking the page's word for it.
What does fair mean for a spin the wheel?
Here it means that each slice wins with the chance its weight gives it: a slice with weight 3 on a wheel whose weights add up to 4 wins 75% of the time, and equal weights give equal chances. Whether a giveaway is fair also depends on things a wheel cannot see, such as who was left off the list.
Can the spin length or the speed of the wheel change who wins?
No. The winner and the point where the wheel stops are fixed from the random number before the wheel moves. The spin length of 2 to 10 seconds only changes how many turns the animation makes on the way, and the landing check confirms that the pointer ends on the chosen slice for every spin length.
Does where the wheel stopped last time affect the next spin?
No. Each spin draws a fresh random number, and the starting angle only decides how far the wheel has to turn. The same-slice-twice check compares how often one slice follows itself with the chance for independent spins, so a wheel that favoured or avoided repeats would show up there.
How many spins should I run to test a wheel?
For a quick look, 10,000 spins per round is plenty. To see a bias of about one percentage point on an eight-slice wheel you need around 17,500 spins, and for a tenth of a point about 1,750,000. The table above shows the band for each size.
What does the chi-square p-value mean?
It is the chance that a generator with no fault would give wins at least as far from the weights as yours did. When nothing is wrong the values spread evenly between 0 and 1, so a low value in one run out of 20 is normal, while low values every time point to a problem.
Does a good test result show that the wheel is fair?
No. It shows that the counts match what the weights predict, which is also what a fair wheel would produce. A test of the output cannot rule out every flaw in a generator or in how a wheel is used, and it says nothing about one particular spin, or about a host who spins repeatedly and shares a single result.
Why not use Math.random() for a wheel?
Math.random() is a fast general-purpose generator that is not cryptographically secure, and browsers build it in different ways. crypto.getRandomValues() is the browser's interface to a cryptographic generator seeded by the operating system, which is the better source for a draw.
Does this test cover Server draw?
No. The test runs in your browser and checks the browser's generator and the selection code. With Server draw on, our server calls the same selection code with its own cryptographic generator, and this page does not test that generator.