How Casino RNGs Work
What a random number generator actually is, how it maps to slot reels and card shuffles, why 'due' payouts are a myth, and how RNGs are tested and certified.
Every outcome in a modern casino game — every spin, every virtual card, every dice roll on a screen — comes from a random number generator. Understanding what an RNG is, and what it cannot do, dissolves most gambling superstitions in one step.
What an RNG actually is
Almost all casino RNGs are pseudo-random number generators (PRNGs): deterministic algorithms that produce a sequence of numbers which passes statistical tests for randomness. “Deterministic” means that given the same starting point (the seed), the sequence is reproducible — which is exactly what makes it testable and auditable.
The generator runs continuously, producing thousands of values per second, whether or not anyone is playing. The moment you press spin, the values at that instant are taken and mapped onto the game. Press a millisecond earlier or later and you would get a different result — which is why the outcome cannot be timed or predicted from the outside.
Physical casino equipment sometimes uses hardware RNGs that derive randomness from physical noise (electronic or thermal). The principle for the player is identical: the next result does not depend on the last.
From numbers to reels and cards
The raw output is just numbers. The game maps them:
- Slots — each reel has a set of virtual stops, often far more than the symbols you see. An RNG value selects a virtual stop per reel; the visible symbol is whatever sits there. The house edge lives in how the virtual stops are weighted — a jackpot symbol might occupy one virtual stop while a blank occupies twenty, so the symbols you see are not equally likely even though they share the reel.
- Video poker and online blackjack — the RNG orders a virtual 52-card deck. Video poker is a genuinely fair deal from a full deck, which is why its return is exactly calculable.
- Roulette and dice on screen — the RNG picks the pocket or the dice faces directly.
The weighting is where the mathematics is. The randomness is honest; the distribution is designed. A slot is not cheating you by making the jackpot rare — the rarity is the published mathematics, and the RTP already accounts for it.
Why “due” is always wrong
The defining property of these outcomes is independence: each result is statistically unconnected to every result before it. The generator has no variable that tracks “how long since this machine paid” or “how much this player is down”.
So:
- A slot that has not hit in 500 spins is not “warming up”. Spin 501 has the same probability as spin 1.
- A roulette wheel showing ten reds does not owe you a black. The eleventh spin is 18/37 for red, same as the first.
- A “hot” machine is a machine that happened to pay recently. That fact predicts nothing about the next spin.
This is the gambler’s fallacy, and it is the engine behind almost every betting system and every “strategy” for picking machines. The RNG’s independence is precisely what makes those systems worthless.
Certification
In a regulated market, the RNG and the game’s return are tested by independent laboratories before deployment and periodically after:
- eCOGRA, iTech Labs, GLI (Gaming Laboratories International), BMM — the common testing houses.
- They verify the RNG passes recognised statistical randomness batteries (the outputs are uniformly distributed, unpredictable, and non-repeating over the tested range).
- They confirm the game returns its stated RTP over tens of millions of simulated rounds.
- A certification seal in a game’s info screen links to the test report.
The critical caveat: certification is only as strong as the regulator behind it. A UK Gambling Commission or Malta Gaming Authority licence carries real, enforced testing requirements. A licence from a permissive jurisdiction may require far less, and a rogue operator can display a seal it is not entitled to. Check that the seal links to a live report, and that the regulator is one with a track record of enforcement.
What it means online versus in a pit
- Card counting does not work online. A certified online blackjack game reshuffles the virtual deck every hand, so the composition never drifts and there is no count to track. The edge is fixed at the basic-strategy figure with no way to beat it.
- Slot “strategies” for timing or machine selection do not work, because the RNG runs continuously and independently.
- Provably fair systems (common in crypto casinos) go further: they publish a hashed seed before the bet and reveal it after, letting you verify the result was not altered once you bet. That proves the specific outcome was not tampered with; it does not change the house edge, which is still built into the game.
See also: what is RTP · Real Time Gaming explained · why betting systems cannot work