Instant games guide

Provably Fair Dice: How Randomness Is Verified

A provably fair dice game lets you check every roll after it happens. The game commits to a hidden seed before you bet, and the revealed seed lets you confirm that the roll matches what was committed.

Share
Table of Content 12
  1. Client and server seeds
  2. How the nonce and seed rotation keep every roll separate
  3. Why the hash matters
  4. How seeds become a dice roll
  5. What your client seed does and does not do
  6. How to check a roll
  7. What verification does not prove
  8. Why a verified roll can still lose money
  9. Provably fair compared with audited random number generators
  10. Provably fair dice and Canadian rules
  11. Mobile casinos in our ranking
  12. Provably fair dice: frequently asked questions

Client and server seeds

Two seeds decide each roll. The server generates a secret seed and shares only its hash before the round. Your device supplies a client seed, which you can usually change. The roll comes from combining both seeds.

How the nonce and seed rotation keep every roll separate

A provably fair dice game uses a nonce to keep each roll distinct. The nonce is a counter that starts at zero for a pair of seeds and rises by one with every bet. The server seed, the client seed and the nonce together feed the function that produces the roll. Changing any one of the three changes the result.

The nonce is the reason two bets made with the same seeds still land on different numbers. It also lets you audit a whole session. If the game lists the nonce next to each bet, you can confirm that no bet was skipped or replayed.

Seed rotation closes one run of play. In most provably fair dice games, changing your client seed makes the game reveal the old server seed and issue a new hashed one. The nonce then resets for the new pair. Rotation is the moment to verify a batch of past bets, because the old server seed is now public. Until you rotate, the active server seed stays hidden, since showing it would let a player predict upcoming rolls.

Why the hash matters

SHA-256 is a one-way function. It turns the server seed into a fixed-length string that cannot be reversed. Because the hash was shared before the round, the server cannot change the seed afterwards without the hash no longer matching.

How seeds become a dice roll

A provably fair dice game turns the combined seeds into a number through a fixed formula. Most implementations run the server seed, the client seed and the nonce through HMAC-SHA256, a keyed version of the SHA-256 hash. The output is a long string of hexadecimal characters. The game reads the first characters of that string as a number and scales it into the dice range, such as 0.00 to 99.99.

The exact slicing and scaling differ between casinos, so the fairness panel is the authoritative description of the formula for that game. Because the formula is fixed, anyone can reproduce the roll. The same inputs always give the same output. A mismatch between your recalculated roll and the displayed roll is the red flag. A match shows that the displayed roll follows the published formula.

The formula decides the number, and the bet settings decide what that number means. The target and the over or under choice set your win chance and payout. The how to play dice guide explains those settings step by step.

What your client seed does and does not do

Your client seed is the part of the roll that the casino does not choose. Most games generate a default client seed in your browser and let you replace it with any text. The server seed hash is committed before you change your client seed, so the casino cannot pick a server seed to suit a particular client seed.

Changing the client seed does not change your odds. It only changes which numbers the fixed formula produces. A client seed is not a strategy, and no seed makes a win more likely. Its job is to show that you, not only the casino, contributed to the result.

The order of events is what makes this work. The hash comes first and your client seed second. If a game let the server see your client seed before it committed to a hash, the protection would fail. Check that the game shows the hash before the first bet of each seed pair.

How to check a roll

  1. Copy the server seed that the game reveals after the round.
  2. Run it through a SHA-256 tool and compare the output with the hash shown before the bet.
  3. If they match, the seed was fixed in advance.
  4. Combine the server seed with your client seed and the round number, then follow the method the game explains in its fairness panel to recreate the roll.

What verification does not prove

A matching hash shows that the seed was not changed. It does not prove that the game's odds match what is displayed, so check the stated return and the bet rules as well. Provably fair systems are one part of trust, not the whole of it.

Why a verified roll can still lose money

Provably fair dice verifies the roll, not the price of the bet. Verification and house edge answer different questions. House edge is the casino's built-in margin on each wager, and it sits in the payout multiplier rather than in the roll. A game can pay slightly less than the true odds and still be provably fair.

Checking roll number 5,000 tells you that the number was not altered. It does not tell you the margin that the casino keeps over many bets. The house edge guide shows how to work out that margin from the payout and the win chance. Do that before you compare dice games.

Provably fair compared with audited random number generators

Provably fair verification and audited random number generators build trust in different ways. A provably fair game lets you check your own bets. A conventional RNG game, such as a slot, keeps its seed on the server and relies on testing laboratories that audit the software. Neither approach makes a player more likely to win.

Each approach suits a different kind of game. Instant games with a single random number per bet, such as dice, fit the seed-and-hash model well. Games with many linked events, such as a multi-reel slot, are harder to expose in the same way. Our guide to how random number generators work covers the audit side.

Provably fair dice and Canadian rules

Provably fair dice does not change the legal position of a casino in Canada. Canada's governing gambling law is the Criminal Code, cited as R.S.C., 1985, c. C-46. Each province then sets its own rules for online play.

Ontario opened its online market to private operators registered with the AGCO in April 2022.

The minimum age for online gambling is 19 in Ontario, British Columbia and Saskatchewan, and 18 in Alberta, Manitoba and Quebec.

A provably fair label is a game feature, not a licence. Check that the casino is authorised for your province before you deposit. The mobile casino laws guide sets out the rules by province. Set deposit limits before you play, and stop if gambling stops being fun.

Mobile casinos in our ranking

  1. Bonus
    3,000 CAD
    Wagering
    40x
    You must wager
    $120,000
    Expected value
    −$1,800
    Visit Casino 19+ · T&Cs Apply · Play Responsibly
  2. Fugu Casino review
    Bonus
    900 CAD + 500 FS
    Wagering
    40x
    You must wager
    $36,000
    Expected value
    −$540
    Visit Casino 19+ · T&Cs Apply · Play Responsibly
  3. Bonus
    $900 + 600 FS
    Wagering
    45x
    You must wager
    $40,500
    Expected value
    −$720
    Visit Casino 19+ · T&Cs Apply · Play Responsibly
  4. PowerPlay review
    Bonus
    1,000 CAD + 100 FS
    Wagering
    –
    You must wager
    –
    Expected value
    –
    Visit Casino 19+ · T&Cs Apply · Play Responsibly
  5. Jackpot City review
    Bonus
    1,600 CAD + 10 FS
    Wagering
    –
    You must wager
    –
    Expected value
    –
    Visit Casino 19+ · T&Cs Apply · Play Responsibly

Provably fair dice: frequently asked questions

What exactly is a provably fair dice game?

A dice game in which you can check each result with cryptography, using seeds and a published hash.

Can I check each roll myself?

Yes, if the game shows the seeds and the hash. Most provably fair dice games display them in a fairness panel.

Is provably fair technology only used for dice?

No. Many instant games use it too, including crash, limbo and mines.

Does provably fair mean the casino is trustworthy?

Not by itself. It shows that the roll was fixed in advance. Check the bet rules, the stated return and the casino's terms as well.

Do I need to know cryptography to verify a roll?

No. You need the seeds, a SHA-256 tool and the steps the game explains in its fairness panel.

What is a nonce in a provably fair dice game?

A nonce is a counter that rises by one with every bet made on the same pair of seeds. It makes each roll different even when the seeds stay the same, and it is one of the three inputs to the roll formula.

When can I see the server seed?

The game reveals the server seed after you change your client seed or rotate the seed pair. Until then you see only the hash, because showing the live seed would let a player predict future rolls.

Does changing my client seed improve my chances?

No. A new client seed changes which numbers the formula produces, not the win chance or the payout. Your odds are set by the target you choose and the house edge of the game.

Is provably fair dice allowed in Canada?

Provably fair describes how a game proves its results. It is not a licence or a legal status. Whether you may play depends on your province and on whether the operator is authorised there.