The short version
- Every spin is chosen before the wheel moves. The result comes from
crypto.getRandomValues, the secure random source built into your browser. The animation then lands on that result. Nothing about how hard or when you click changes the outcome. - No slice is favored. Numbers are drawn with rejection sampling, so on a 7-slice wheel each slice has exactly a 1 in 7 chance, not “about” 1 in 7.
- Weights are shown, never hidden. Only the prize wheel has weights, and its slice sizes and the percent list show them. No page has a hidden setting that changes the odds.
- A checkable draw can be checked by anyone. It is the only kind of draw that is saved, and it saves enough for a stranger to re-run it.
How a checkable draw works
- The host locks the entries. Our server saves the title, the entries in the order they were typed, and the settings. It makes a secret seed of 32 random bytes and shows its fingerprint, the SHA-256 hash of the seed. The fingerprint does not reveal the seed, but it pins it: no other seed has that fingerprint.
- The host shares the result link. Anyone with the link can watch the draw. They see the locked entries and the fingerprint before anything is decided.
- Optional: someone in the room picks an audience number. It is mixed into the seed after locking. Since nobody knew it when the seed was fixed, not even our server can know the result ahead of time.
- The host spins once. The server reveals the seed and works out the order. A locked draw cannot be spun again. A second press returns the same result.
- Anyone checks it. The result page shows the seed. Check this draw confirms that the seed matches the fingerprint, the entries match the locked list, and the same seed gives the same order.
The method, exactly
This is version 1. A result page shows which version made it.
- Start with the seed, written as 64 lowercase hex characters. If there is an audience number, the draw seed is
SHA-256("<seed>:<audience number>")in hex. Otherwise the draw seed is the seed itself. - Make a stream of random numbers. Block 0 is
SHA-256("<draw seed>:0"), block 1 isSHA-256("<draw seed>:1"), and so on. Read each 32-byte block as eight unsigned 32-bit numbers, big-endian. - To pick a number below
m, take the next numberufrom the stream. Ifuis at or above2^32 - (2^32 mod m), throw it away and take the next one. Otherwise the pick isu mod m. - Shuffle the entry positions
0ton - 1with Fisher-Yates: forifromn - 1down to1, pickjbelowi + 1and swap positionsiandj. - Read winners from the front of the shuffled order, then alternates. With One prize per person on, a name that already won is skipped. Names match if they are the same after trimming spaces and ignoring capitals.
Here is the same method in JavaScript, short enough to paste into a browser console:
async function sha256(text) {
const d = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(text));
return [...new Uint8Array(d)].map((b) => b.toString(16).padStart(2, '0')).join('');
}
async function order(seed, audience, n) {
const s = audience ? await sha256(`${seed}:${audience}`) : seed;
const words = [];
for (let b = 0; words.length < n + 16; b++) {
const h = await sha256(`${s}:${b}`);
for (let k = 0; k < 64; k += 8) words.push(parseInt(h.slice(k, k + 8), 16));
}
let p = 0;
const below = (m) => { const lim = 2 ** 32 - (2 ** 32 % m); for (;;) { const u = words[p++]; if (u < lim) return u % m; } };
const o = [...Array(n).keys()];
for (let i = n - 1; i > 0; i--) { const j = below(i + 1); [o[i], o[j]] = [o[j], o[i]]; }
return o;
}
Throwing a number away is so rare (under 1 in 2 billion per pick for a list of 5,000) that 16 extra numbers almost always cover it.
What a checkable draw proves, and what it does not
It proves that the entries were fixed at the time shown, that the result was fixed before the spin, and that nobody re-spun the draw. With an audience number, it also proves that nobody, including us, knew the result in advance.
It cannot prove that the list was complete or spelled right before it was locked. That is up to the host, which is why the full entry list is on the result page for everyone to read. It also cannot stop a host from locking several draws and sharing only one. Sharing the link before the spin is what rules that out. A link that first appears after the spin proves much less.
Running a draw people will trust
- Lock the entries and share the link before you spin, in the same place people will see the result.
- Read the start of the seed fingerprint out loud, or show it on screen.
- Ask someone else to call out the audience number.
- Spin once, in view. Present mode shows the wheel and the result large enough for a room.
- Post the result link afterward so latecomers can check it.
Normal spins
Spins that are not checkable never leave your device. They are just as random, but nothing is saved, so there is nothing for anyone else to check later. Use a checkable draw when the result matters to people who are not looking at your screen.
Updated December 1, 2026