Fonbet
🎰 500 Free Spins with no deposit for new players β€” code BOO520 Β· 21+ | HGC

How the random number generator (RNG) works in online games

Every spin, every card, every roulette ball in an online casino is decided by a few lines of code generating thousands of numbers per second. This is how they work, how they are checked β€” and how you know whether to trust them.

Random number generator RNG
⏱️

The result exists before the animation

The moment you press Spin, the RNG has already chosen each reel’s position. The 2 seconds of spinning are theatre.

πŸ”’

It doesn't know who is playing

The RNG sees no balance, history or bonus. It produces numbers; the game translates them into symbols.

πŸ§ͺ

Tested by third parties

Millions of results pass statistical tests (NIST, Diehard) before a game is certified.

What it is

A random number generator is a program that continuously produces sequences of numbers with no discernible pattern. In casino games each number maps to an outcome:

  • A slot with 5 reels Γ— 100 positions: one number 0–99 per reel.
  • Roulette: one number 0–36.
  • Blackjack: numbers selecting positions in a “shuffled” deck.

The generator runs continuously, even when nobody is playing. When you press Spin, the game “grabs” the numbers of that millisecond. A millisecond earlier or later β€” a completely different result. That is why “I pressed at the wrong moment” is meaningless: there is no right moment.

PRNG v TRNG

Pseudo-random (PRNG)True random (TRNG)
SourceAlgorithm + starting number (seed)Physical phenomenon: noise, radioactivity, atmospheric fluctuations
SpeedMillions of numbers/secondSlow
PredictabilityOnly if you know seed + algorithmImpossible
UseAlmost every online gameSeeds for PRNGs, cryptography

Online casinos use PRNGs β€” usually algorithms such as the Mersenne Twister or cryptographic generators (Fortuna, ChaCha20). “Pseudo” does not mean “fake”: with a good seed (from a TRNG source: hardware noise, nanosecond timers, CPU counters) the sequence is unpredictable in practice. The seed is refreshed constantly.

From number to symbol: the weight table

The RNG doesn’t know what a “Wild” is. The game has a reel strip: each reel may have 100 positions, with e.g. 30 “cherries”, 15 “bells”, 2 “Wilds”. The number 0–99 points to the position. So the Wild appears 2 % of the time per reel, and that β€” together with the paytable β€” sets the RTP.

This means the reels you see on screen (usually 3–4 visible symbols) are a window onto a much larger “virtual reel”. The “near miss” with two scatters and the third one position above does not mean you were close: the probability was the same as on any other spin.

How it is certified

  1. The provider (e.g. Pragmatic Play, Evolution, NetEnt) submits the RNG and game code to an independent lab: GLI (Gaming Laboratories International), eCOGRA, iTech Labs, BMM Testlabs.
  2. The lab runs statistical tests on tens of millions of results: NIST SP 800-22, Diehard/Dieharder, chi-square, distribution, autocorrelation and period checks.
  3. It verifies that the actual RTP converges to the declared one.
  4. It issues a certificate for that specific version. Any code change = re-certification.
  5. In Greece the HGC requires certification from an approved lab for every game before release and has real-time access to transaction data.

In licensed operators’ games the certificate number and lab are usually shown in the rules or the provider’s footer.

What the RNG does NOT do

  • It doesn’t “remember” that you lost 50 spins.
  • It doesn’t “heat up” or “cool down”.
  • It doesn’t change behaviour when you play with a bonus, a bigger stake or at a particular time.
  • It doesn’t see your balance.

All the “patterns” you think you see are the human tendency to find structure in noise β€” exactly the same phenomenon as the “patterns” in roulette. In detail under casino myths.

Live games: no RNG, cameras instead

In live roulette the ball is real and the result is read by an optical reader (OCR) or a sensor in the wheel. In live blackjack the cards carry barcodes scanned as they are dealt. RNG appears only in the add-ons β€” e.g. which numbers get a multiplier in Lightning Roulette β€” and those parts are certified separately.

Provably fair

Crypto casinos (outside European licensing) use provably fair: before the game the casino publishes a hash of the server seed; the player adds their own seed; after the game the server seed is revealed and the player verifies that the result follows from the two seeds. Elegant, but it does not check the RTP β€” only that the specific result was not altered afterwards. In Greece the certification + HGC oversight system covers both.

FAQ

Can the casino 'tune' the RNG?βŒ„
At licensed operators, no: the RNG is part of the provider’s certified software (e.g. Pragmatic, NetEnt), runs on the provider’s servers, not the casino’s, and any change requires re-certification. The casino only chooses which RTP version to enable.
Are live games RNG?βŒ„
No β€” in live roulette or live blackjack the result comes from a real wheel and real cards. RNG is used only for add-ons such as the multipliers in Lightning Roulette.
What is 'provably fair'?βŒ„
A cryptographic verification method (hash of the seed before the game) that lets the player check the result was not altered. Common at crypto casinos outside the EU; in Greece lab certification replaces it.

More from the casino

Get started at Fonbet Casino

Register in 5 minutes, 500 Free Spins with no deposit β€” code BOO520

Register

21+ | Regulated by the HGC | Frequent and repeated gambling may lead to addiction | Helpline 1114

Game providers

Pragmatic Play
Evolution
Playtech
Play'n GO
NetEnt
Red Tiger
Amusnet
Novomatic
Hacksaw Gaming
Big Time Gaming
Push Gaming
Nolimit City
Relax Gaming
Kalamba
Skywind
iSoftBet
Wazdan
Spinomenal
Playson
Yggdrasil
Blueprint
ELA Games
Peter & Sons
Spribe

Certified providers available at Fonbet Greece. Logos belong to their respective owners.