A random number generator (RNG) produces values through either a mathematical process or a physical measurement. Most software uses a pseudorandom number generator (PRNG): an algorithm transforms an initial state, called a seed, into a sequence that looks statistically random. A cryptographically secure RNG (CSPRNG) adds safeguards that make future outputs difficult to predict from earlier ones.
In an online casino, the game maps each generated value to an outcome, such as a reel position or roulette pocket. That mapping—not just the generator—must be checked for bias and correct payout rules. Players comparing rules and terms, including a monopoly casino bonus, should distinguish the advertised return from the randomness of any individual result.
An RNG does not decide that a player is “due” for a win. Each valid game round uses the current generator state, and a losing result does not make a later win more likely. Long-run statistics describe averages across large numbers of rounds; they do not predict a particular spin, card, or hand.
From a seed to a game result
Algorithmic generation
A PRNG begins with a seed and repeatedly updates internal state. A simple linear congruential generator follows a rule such as xn+1 = (a × xn + c) mod m. Its speed suits basic simulations, but its structure can expose patterns, so it is unsuitable for security-sensitive casino outcomes. Modern systems use stronger designs, such as AES-CTR or ChaCha20-based generators, with large internal states and controlled access.
A seed may come from an operating system’s entropy pool, which collects timing and device events. A CSPRNG uses that seed to generate output that is computationally impractical to predict. Quality depends on sound implementation, protected state, and secure reseeding—not merely on selecting a sophisticated algorithm.
Mapping values without bias
Games need outcomes from a defined range. If a generator returns values from 0 to 255 and a game needs one of six equally likely symbols, simply taking the value modulo 6 creates bias: 256 is not divisible by 6. Rejection sampling discards values above the largest evenly divisible range, then maps the remainder. This gives each symbol the same probability, provided the underlying output is uniform.
What casino metrics say—and do not say
Return to player (RTP) is a theoretical long-run payout percentage, not a promise for a session. A 96% RTP corresponds to an expected loss of 4 units per 100 wagered over sufficiently many plays under the stated game rules. Actual results vary, especially when each round has a high payout variance. House edge expresses the casino’s mathematical advantage on a particular wager.
| Game or metric | Example value | What it indicates |
|---|---|---|
| European roulette | 37 pockets; 2.70% house edge | A straight-up bet pays 35:1; the single zero creates the edge. |
| American roulette | 38 pockets; 5.26% house edge | The added double zero increases the edge on standard bets. |
| Slot RTP | 96% RTP; 4% theoretical house edge | An average across extensive play, not a guaranteed session return. |
| One roulette spin | 1 of 37 pockets in European roulette | Each pocket has a 1/37 chance when the wheel model is fair. |
For European roulette, a straight-up bet on one number wins with probability 1/37 and pays 35 units of profit for a one-unit stake. The expected net result is (1/37 × 35) − (36/37 × 1), or −1/37 of the stake: a 2.70% house edge. This calculation follows from the paytable and pocket count, not from a prediction about the next spin.
How fairness is tested
Testing examines both the generator and the complete game implementation. Statistical tests can detect suspicious patterns in large output samples, but passing them does not prove that software is secure or that every game rule is correct. Reviewers also inspect source or compiled code, outcome mapping, payout tables, and controls around production systems.
- Distribution: check whether outcomes occur at their expected frequencies across large samples.
- Independence: test whether earlier outputs reveal patterns in later outputs.
- Implementation: verify that range conversion, game rules, and payout calculations match approved specifications.
- Operations: protect generator keys and seeds, restrict access, and record changes for audit.
Independent testing laboratories commonly assess casino software against standards such as GLI-19, while regulators set jurisdiction-specific approval requirements. Certification applies to a tested version and scope; it is not a guarantee of a player’s result or proof that every later software change has been reviewed.
What players can verify
Look for the game’s stated RTP, rules, and maximum payout, then confirm which version or jurisdiction the information covers. A published RTP can vary between versions of the same title. For live games, published procedures and equipment controls matter alongside software, because a physical wheel or card shoe introduces different sources of variation.
Short-term streaks are compatible with random outcomes. For example, five consecutive losses on a roulette even-money bet occur with probability (19/37)5, about 3.6%. That event is uncommon, but it does not change the probability of the next spin. RNG quality is assessed through generation, unbiased mapping, testing, and operational controls—not by whether a short run looks orderly.
