What Is an RNG in Online Casino Games?
The random number generator explained: how it turns a stream of numbers into reel stops and card draws, how independent laboratories test it, and why no spin is ever due.
Provably fair explained: how cryptographic commitments, seeds and hashes let you check for yourself that a game result was fixed before your bet and never altered.
Provably fair means a game hands you the evidence to check its own result. Before you bet, the operator publishes a cryptographic fingerprint of an outcome it has already fixed. After the round, it reveals the hidden values behind that fingerprint, and you can recompute the result yourself. If the numbers line up, the outcome cannot have been changed after your bet was placed.
It is a shift in where trust sits. Instead of asking players to accept that a random number generator behaves, a provably fair system gives every round a receipt that any player can audit.
The whole idea rests on a one-way hash function such as SHA-256. Feed it any value and it returns a fixed-length string. Two properties matter here: the same input always produces the same output, and you cannot work backwards from the output to recover the input.
That combination allows a commitment. The casino generates a secret value, hashes it, and shows you the hash before you play. The hash reveals nothing useful about the secret, but it locks the casino in — publish a hash, and the only value that will ever match it is the one you already had. When the secret is revealed afterwards, you hash it yourself and compare. A match proves the value existed before the bet and was not swapped for a more convenient one.
Everything else in a provably fair system is plumbing around that single guarantee.
Most implementations use the same three inputs:
The typical round follows a fixed sequence:
The client seed is what stops the reverse problem. Because you contribute an input the operator did not know when it generated the server seed, the operator cannot pick a server seed that produces a convenient outcome for a bet it has not seen yet.
In short
Hash published before the bet, secret revealed after it. If the revealed value hashes to the published fingerprint, the result was locked in before you played.
Here is one round, start to finish, in the order the values appear.
| Step | What happens | Who can see it |
|---|---|---|
| 1 | Provider generates server seed | Provider only |
| 2 | Provider publishes Hash(server seed) | Player, before betting |
| 3 | Player sets or accepts a client seed | Both |
| 4 | Round plays; nonce increments | Both |
| 5 | Provider reveals the server seed | Player, after the round |
| 6 | Player hashes the revealed seed and compares | Player verifies |
| 7 | Player re-runs the formula on the three inputs | Player reproduces the result |
Suppose a crash round ends at 2.41x and you want to check it. The fairness panel showed a hash before the round. Afterwards it reveals the server seed. You paste that seed into any SHA-256 tool and compare the output with the hash you noted — they match, so the seed was not substituted. You then feed the server seed, your client seed and the round's nonce into the provider's published formula and get 2.41x back. The round is verified.
Note what happens if the operator had tried to cheat. Changing the outcome would require a different server seed, which would hash to a different fingerprint, which would not match what was published. The mismatch is immediate and undeniable, which is precisely the point.
Studios apply the same principle with their own naming. According to BGaming's published workflow, the game outcome, called the Result, is calculated before the bet is placed, paired with a random Secret, and committed using a SHA-256 hash. Players can set a Client Seed, which is then applied to the precomputed Result to derive the Final Result shown in the game. Once the round completes, the provider reveals the Result and the Secret so players can verify the commitment and confirm the final outcome was derived correctly.
The moving parts map directly onto the general pattern:
BGaming applies this across several game types, including roulette, card games, video poker and some slots. In a roulette round the game pre-generates an outcome and a secret, publishes the hash before the spin, and reveals both afterwards so the player can confirm the displayed number came from the disclosed inputs. You can read more about the studio in our BGaming provider guide.
Both approaches aim at the same thing and answer to different auditors.
| Aspect | Certified RNG | Provably fair |
|---|---|---|
| Who checks | An independent testing laboratory | The individual player |
| When | Periodically, across millions of simulated rounds | Round by round, after each result |
| Proves | The generator's output is statistically random | This specific result predated your bet |
| Typical games | Slots, table games, live dealer | Crash, dice, some card games and slots |
Neither replaces the other. Certification tests the statistical quality of the randomness across a whole game; provable fairness tests the integrity of one round you actually played. Our guide to random number generators covers the certified side in detail.
Provably fair technology is used primarily in crypto casino games and lets players independently verify that results were not manipulated by the casino or the player, using cryptographic algorithms that can be checked mathematically after a round has ended. Not every casino game uses it: it appears where a provider has built the seed and hash workflow into the game, and it sits alongside — rather than instead of — the tested random number generators behind the rest of the library.
At Lunaris the casino library runs on games supplied by established studios, and the fairness model depends on the title you open. Where a game includes a provably fair panel, the seeds and hashes are shown in the game interface itself, so verification happens there rather than through the casino. You can see which studios are live on the providers page, and each studio publishes its own fairness documentation.
For everything else, fairness rests on independently tested randomness for RNG games and on real dealers running real equipment in live dealer games. In all three cases the outcome of any single round is random and the game's long-run return is a mathematical average, not a promise about your session. If you ever want a specific round reviewed, contact [email protected] with the round number, bet amount, date and time, game and provider.
Register in under 30 seconds and unlock exclusive free spins on certified games.