Part one: the random number generator
A random number generator, or RNG, is a program that produces numbers with no usable pattern. Slots use a pseudo-random generator: an algorithm whose output is unpredictable in practice. When the player presses spin, the game takes numbers from the generator and uses them to determine the result.
In an online slot, this happens on the game server, not in the player's browser. The browser receives the result and plays the animation.
Part two: the math model
The math model turns random numbers into a game.
| Element | What it defines |
|---|---|
| Reel strips | The ordered list of symbols on each reel, and how many of each |
| Paytable | What each winning combination pays |
| Feature rules | How bonuses trigger and what they do |
| Bet modes | The options that change the cost or the behaviour of a spin |
A rare symbol is rare because it appears few times on the reel strips. The generator does not favour or avoid anything: it picks positions, and the strips do the rest.
From one spin to a result
- The player presses spin and the bet is taken.
- The server draws random numbers.
- The numbers select a stopping position on each reel, or a complete pre-computed outcome.
- The model works out what the visible symbols pay.
- The result is recorded and sent to the game.
- The game plays the reels and shows the win.
The numbers that describe a slot
- Return to player (RTP). The share of all bets the game pays back over a very large number of spins. It describes the long run, not a session.
- Volatility. How the payback is spread: many small wins, or few large ones.
- Hit frequency. How often a spin pays anything.
These values are not set by a dial. They come out of the reel strips, the paytable and the features, and they are checked by simulating a very large number of spins.
Beliefs the math does not support
- "The machine is due." Spins are independent. A long losing streak does not make a win more likely.
- "It is hot" or "it is cold." Past results do not change the next one.
- "Stopping the reels by hand changes the result." The result was decided when the spin started.
- "The game adjusts to my bets." The model applies the same rules to every spin of a given mode.
How fairness is checked
In regulated markets, an independent laboratory tests the generator and confirms that the game returns what it declares. See casino game testing and certification. Some platforms also publish a method that lets a player verify a result after the fact, known as provably fair.
Where the algorithm stops and the game begins
The algorithm decides who wins. It does not decide how it feels. Two slots with the same math can be dull or thrilling depending on how the result is staged. That is the job of the mechanics and the animation: see slot game mechanics explained and slot machine animation.
Need a slot built on solid math?
Art, animation and code from one team. Custom slots from €4,000.
Get a quote