How the randomness works and why results cannot be rigged
Last updated:
Every game on this site draws its result from a seed that your browser generates with a cryptographic random source, then feeds that seed into a fixed, deterministic generator. Because the generator is deterministic, a share link only needs to carry the seed and the inputs, and anyone can recompute the same result. This page explains the mechanism in plain language, what it guarantees, and, just as importantly, what it does not.
Step one: a cryptographic seed
When you press Start, the page asks the browser for one 32-bit unsigned integer using crypto.getRandomValues. This is the same randomness source browsers use for encryption keys, and it is not predictable from the time of day or previous results. The number lies between 0 and 4,294,967,295. There is no input field for typing your own seed, so the person pressing the button cannot choose it.
If the browser cannot provide secure random numbers, the game stops with an error rather than silently falling back to a weaker source.
Step two: a deterministic generator
The seed is expanded into four internal state words and used to drive sfc32, a small, well-studied pseudo-random generator. The first twelve outputs are discarded to mix the state. From then on the generator produces a fixed sequence for that seed: the same seed always yields the same sequence of numbers, on any device, in any browser, today or next year. The algorithm is frozen precisely so that old share links keep replaying the same result.
Each game consumes that sequence in a fixed order. The wheel draws one ticket among the weighted slices, then the landing point inside the slice, then the number of turns and the duration. The ladder draws the rungs row by row. Marble Drop, Survival Draw, Balloon Race and Disaster Dodge use the sequence for starting positions, the course or stage layout, small nudges and the timing of events, then run a simulation with a fixed 1/60-second time step, which is why those results are also reproducible.
Step three: unbiased picks and shuffles
Turning a 32-bit number into "a number from 1 to 7" naively with a remainder operation slightly favours small values. The site instead uses rejection sampling: it discards any raw value that would fall into the incomplete last block, so every outcome in the range has exactly the same probability. Shuffling uses the Fisher–Yates algorithm, which produces every ordering with equal probability. The Draw page, team splits, race tie-breaks and lottery number candidates all go through these two routines.
What a share link contains
- A version number, the seed, the input (names, items, a number range or a lottery game id) and the options you chose (mode, counts, weights, course settings, game length). Default settings are omitted to keep the link short.
- It never contains the result. When the link is opened, the page validates every field, rejects anything unexpected, and recomputes the result from the seed. A link that tries to inject a winner, a ladder layout, a race speed or a liar role is treated as invalid and shows an empty form.
- The data lives in the URL fragment after the # sign, which browsers do not send to the server. Names in a link therefore travel only between the people who exchange it.
- Links are compressed when the browser supports it and capped at 64 KB of data, which comfortably fits 1,000 names.
What this does and does not guarantee
It guarantees that a specific seed with a specific input always gives the same result, that nobody can pick the seed through the interface, and that no result is stored or editable in the link. It also guarantees that every option has the stated probability: equal by default, proportional to weights on the wheel.
It does not stop a dishonest host from pressing Start several times in private and sharing only the link they liked. The seed is random each time, so a determined host could keep going until the outcome suits them. The protection against that is procedural: run the draw once in front of the participants or on a shared screen, announce the settings first, and share the link immediately. The link then documents the single run everyone saw.
It also does not make lottery numbers more likely to win, and it does not protect names you choose to put in a link from the people you send it to.
Checking a result yourself
- Open the shared link on your own device. The page recomputes from the seed and opens on the result; press Watch how it happened to see the run again. If the ranking or winner differs from what was announced, the link is not the one that was run.
- Compare the entry list or number range shown in the form with the published list. A link with a different list is a different draw.
- For large draws, compare the PNG of the final scene with your own replay. Identical seeds give identical scenes.
Frequently asked questions
Is a 32-bit seed big enough?
There are about 4.3 billion seeds, each giving a different run. That is far more than any group will ever draw, and because the seed comes from a cryptographic source nobody can predict which one you will get. The seed size is a design choice for short links, not a security limit for a party draw.
Why does the same seed give the same animation too?
The animation parameters, such as the wheel’s number of turns and deceleration time or every marble’s path, are either drawn from the same sequence or computed by a fixed simulation. Replaying is therefore a true replay, not a re-enactment.
Are my inputs sent anywhere?
No. Names and settings are processed in the browser and the last input is kept only in this browser’s local storage for convenience. There is no account, and no server API receives draw names, inputs or results.