A slot's random number generator (RNG) is the piece of software that picks the result of every spin. When your bet reaches the game server, the RNG produces a number, the game turns that number into a stop position on each reel, and the paytable decides what those symbols pay. The spinning reels you see only display a result that already exists.

This guide covers how that works step by step, how a raw random number becomes a reel stop, and what testing standards require of it. Whether slots at a given casino are fair overall (licensing, test certificates, RTP versions) is covered in the slot fairness guide.

Pseudo-random and hardware generators

There are two families of random number generator:

  • Hardware (true) RNGs measure a physical process such as electrical noise. Their output cannot be reproduced, but they need dedicated hardware.
  • Pseudo-random number generators (PRNGs) are algorithms. They start from a seed and apply a fixed calculation to produce a long stream of numbers that pass statistical tests for randomness. Without the seed and the internal state, the next number cannot be worked out.

Online slots use software generators. What matters for you is the result: an output that is uniform (every value equally likely) and unpredictable.

From button press to symbols: the sequence

  1. Bet received. Your stake goes to the studio's game server, usually through the casino's platform.
  2. Numbers drawn. The RNG produces one random number per reel (or per cell on a grid game, plus more for features).
  3. Scaling. Each number is converted to a stop position on its virtual reel strip.
  4. Mapping. Each stop has a symbol. Symbols with big pays have few stops on the strip; low symbols have many. This weighting is where the odds come from (see slot odds and payouts).
  5. Evaluation. The paytable checks the paylines or ways and credits any win.
  6. Display. The game animates the reels to land on the stops already chosen.

Because the result is fixed at step 2, stopping the reels early, using autoplay or tapping at a particular moment changes only the animation.

How a random number becomes a reel stop

A generator typically outputs a whole number in a fixed range, for example a 32-bit value from 0 to 4,294,967,295. The game must scale it to the length of the reel strip without favouring any stop.

Scaling a 32-bit random number (4,294,967,296 possible values) to a reel strip
Reel stripValues per stopEven?
64 stops4,294,967,296 ÷ 64 = 67,108,864 for every stopYes, divides exactly
100 stops (simple remainder method)96 stops get 42,949,673 values, 4 stops get 42,949,672No, a tiny bias

The bias in the second row is about one part in 43 million, far too small to notice while playing, but a correct implementation removes it, for example by discarding the few values at the top of the range and drawing again. This is one of the things a test lab checks: the UK Gambling Commission's technical standard RTS 7 requires that "any scaling applied to the output of the random number generator maintains the qualities" of the raw output.

Scaled stops then pass through the reel strip. On a three-reel game with 20 stops per reel, a symbol with one stop on each reel appears on the line once in 20 × 20 × 20 = 8,000 spins on average. A modern video slot uses much longer strips, which is how a top prize can be tens of thousands of spins away.

What the standards require of a slot RNG

Regulators publish the tests an RNG must pass. The UK Gambling Commission's RTS 7 is a clear public example. Among other things it requires that:

  • RNG output is "uniformly distributed over the entire output range" and outcomes follow "the expected or theoretical probabilities";
  • outcomes are unpredictable: for a software RNG "it should be computationally infeasible to predict what the next number will be";
  • seeding and reseeding do not introduce predictability, and two instances of the generator do not produce the same stream;
  • there is no adaptive behaviour: no "automatic or manual interventions that change the probabilities of game outcomes occurring during play".

The last point is the technical answer to "can the casino tighten a slot while I play". Under these rules the probabilities are fixed in the certified maths model, and numbers must be used in the order they are generated.

Independent labs test RNGs against standards like these. eCOGRA, founded in 2003, lists RNG testing and RTP testing among its services; iTech Labs lists RNG certification and RTP/RNG audits; BMM Testlabs offers maths and RNG testing; and Gaming Laboratories International (GLI) provides testing and certification for regulators, suppliers and operators. Which lab certified a given game depends on the studio and the market.

What the RNG means when you play

  • Every spin is independent. The generator has no memory of past spins, so a long losing run does not make a win "due", and a jackpot does not make the next one less likely. The slot myths guide works through the common beliefs.
  • Your bet size does not change the probabilities on almost all modern slots; it scales the wins and losses.
  • The RNG does not set the price. The house edge comes from the paytable and reel weighting, which the RTP summarises. A perfectly random game with a 94% RTP still costs more than one with 96%.
  • Demo play on free slots shows how a game behaves without a stake. Check that the RTP in the demo's info screen matches the version your casino runs.

Random means you cannot plan around results. Decide your budget in KSh before you start and see responsible gaming for tools that help you stick to it.