Provably Fair Dice: How Rolls, Win Chance and Multipliers Fit Together

How a seed becomes a provably fair dice roll from 0.00 to 100.00, how over and under bets work, and how win chance sets the payout at a 1% edge.

Updated September 27, 2026

Contents
  1. How does a seed become a roll between 0.00 and 100.00?
  2. Over or under: what are you actually betting on?
  3. How do win chance and multiplier trade off at a 1% edge?
  4. Worked example: round 1, from seed to 42.17
  5. Does changing the target or the direction change your edge?
  6. Why might your own check not match?
  7. Why is dice the easiest game to check by hand?

Dice verifier

Example round · Dice

Published hash

The SHA-256 fingerprint the game showed before you played. Without it the tool can calculate the result but cannot check the commitment.

Result the game showed

Optional. Paste the result from the round history to compare it with the calculated one.

Calculated result · Dice roll

42.17

  • Commitment matches the published hash
  • No game result entered to compare

How this result was derived
  1. 1

    Commitment, before the round

    SHA-256(server seed) = f51376a5a542e19876a861e25e058cc522a304cd3edbd012bad096d8cc543de0
  2. 2

    HMAC-SHA256 of player-17:1:0

    6bf446d5eea533d95c787f63c2ac5b6943a7f7dcf4dc68f9edf3569f0c50953f
  3. 3

    Bytes to a number in [0, 1)

    0.4216961164
  4. 4

    floor(x × 10,001) ÷ 100, a roll from 0.00 to 100.00

    42.17

This tool reproduces one documented reference scheme. Platforms that build the message, read the bytes or map the number differently will give other results with the same seeds. See the scheme.

From seed to result.

The example round under this site’s reference scheme, step by step.

  1. Hash commitment

    The server seed is hashed and the hash is shown before you play.

    f51376a5a542e198…
  2. HMAC

    Server seed as key, message player-17:1:0.

    6bf446d5eea533d9…
  3. Number in [0, 1)

    The first four bytes become one number.

    x = 0.421696
  4. Dice roll

    Floor(x × 10,001) ÷ 100, a roll from 0.00 to 100.00.

    42.17

The example round on this site rolls 42.17. A bet on under 50.00 wins it, a bet on over 50.50 loses it, and the server could not have picked 42.17 after seeing which way you bet, because it had already committed to the seed that produces it.

Provably fair dice is the simplest game of its kind. A seeded number becomes a roll between 0.00 and 100.00, you choose a target and a direction, and the target sets both your chance of winning and what a win pays.

That simplicity is why it is the best game to learn verification on. The whole path from seed to result fits on a few lines, and you can follow it with a calculator.

How does a seed become a roll between 0.00 and 100.00?

Under the reference scheme this site uses, the server computes HMAC-SHA256 with its secret server seed as the key and a message made of your client seed, the nonce and a cursor, such as player-17:1:0. The first four bytes of the output are read as a fraction between 0 and 1, which we call x. If the seeds and the nonce are new to you, our page on seeds and nonces explains what each one is for.

The dice rule then stretches x across the roll range.

roll = floor(x × 10,001) ÷ 100

round 1:   0.4216961164 × 10,001 ≈ 4,217.38   →   floor = 4,217   →   42.17

Multiplying by 10,001 rather than 10,000 is deliberate. The range from 0.00 to 100.00 in steps of 0.01 has 10,001 values, because both 0.00 and 100.00 are possible. Each one has almost exactly the same chance, 1 in 10,001 to within about one part in 430,000, which is a little under 0.01%.

Other platforms make other choices. Some games roll from 0.00 to 99.99, some use three decimal places, some read more bytes to get a finer number before scaling it. None of these change the idea, but they do change the exact figures, so a roll from one game can only be checked with that game's own rule.

Over or under: what are you actually betting on?

You pick a target and a direction. Roll under 50.00 wins on any roll from 0.00 to 49.99; roll over 50.00 wins on any roll from 50.01 to 100.00. The target itself loses in both directions in this description, though games differ on whether the boundary counts.

Counting the outcomes makes the chances exact. Under 50.00 covers 5,000 of the 10,001 rolls, a win chance of 49.995%. Over 50.00 also covers 5,000 rolls. The one roll left over, 50.00 itself, belongs to neither bet. With a target of 42.18, under covers 4,218 rolls (42.18%) and over covers 5,782 (57.81%).

In practice most games show the win chance rounded to two decimals, and the difference between 49.995% and 50% is far smaller than anything you would notice over a session. It matters only when you are checking a game's math to the last digit.

How do win chance and multiplier trade off at a 1% edge?

The multiplier is the reward for taking a lower chance. In a game with no edge at all, a 50% chance would pay 2.00×, and a 10% chance would pay 10.00×: the payout is 100 divided by the win chance in percent. A game with a 1% house edge uses 99 instead of 100.

multiplier = 99 ÷ win chance (in %)

49.5% chance:   99 ÷ 49.5 = 2.00×

The reference scheme on this site defines how the roll is produced, not what a win pays; the payout side above is the arithmetic of a flat 1% edge, which is a common setting but not a universal one. A game's help page should state its own edge.

Win chance Bet (roll under) Multiplier at a 1% edge
1% 1.00 99.00×
10% 10.00 9.90×
25% 25.00 3.96×
49.5% 49.50 2.00×
50% 50.00 1.98×
75% 75.00 1.32×
90% 90.00 1.10×
98% 98.00 1.0102×

Multiply any row's win chance by its multiplier and you get 0.99. On the 10,001-roll reference range the exact chances run a hair lower (under 50.00 is 49.995%, not 50%), so 1.98× on under 50.00 returns 98.99 cents per dollar, an edge just over 1%. The house edge page goes through why that number, and not the size of the multiplier, is what decides the long-run cost.

Worked example: round 1, from seed to 42.17

This is the example round from the homepage, done by hand. The server seed has been revealed, so every step can be repeated.

  1. Check the commitment. SHA-256 of the server seed a411321f…fd78 gives f51376a5…3de0, the hash that was shown before play. It matches.
  2. Build the message: client seed player-17, nonce 1, cursor 0, written as player-17:1:0.
  3. Compute HMAC-SHA256 with the server seed as the key. The output starts 6bf446d5.
  4. Read the first four bytes: 107, 244, 70 and 213. Then x = 107/256 + 244/2562 + 70/2563 + 213/2564 ≈ 0.4216961164.
  5. Apply the dice rule: floor(0.4216961164 × 10,001) = 4,217, and 4,217 ÷ 100 = 42.17.

Now settle two bets on that roll. Roll under 50.00 at 1.98× wins, so a $10 stake returns $19.80. Roll over 50.50 loses the $10. The roll was the same for both players; only the bet differed.

Our provably fair calculator runs the same five steps when you paste in the seeds, and it shows the intermediate values so you can compare them with your own.

Does changing the target or the direction change your edge?

No, and this is where dice is refreshingly honest compared with games that hide their math. At a flat 1% edge, a 98% chance at 1.0102× and a 1% chance at 99.00× cost exactly the same on average. What changes is how bumpy the ride is.

Low-risk settings win almost every roll and lose rarely, but one loss at 98% costs you about as much as the profit of 98 wins. High-multiplier settings lose most of the time and pay big occasionally. If you've ever watched someone switch to roll over after a string of low numbers, you have seen the gambler's fallacy at work: each roll comes from a new nonce and a fresh hash output, and the previous ten rolls have no say in it.

Auto-bet features make this easy to forget. A script that raises the stake after every loss runs into the table limit or the end of your balance sooner than intuition suggests, and the 1% edge applies to every dollar it pushes through.

Why might your own check not match?

Most failed checks are not cheating. They are a mismatch between what you typed and what the game used. The nonce is the usual suspect: some sites start counting at 0 and others at 1, and changing your client seed usually resets the counter, so the tenth bet of a new seed pair has nonce 9 or 10, not whatever your account history says overall.

The server seed is the second. A site can only show it after it stops being used, which normally means you rotate to a new seed pair first. Until then you have only the hash, and a hash can't be checked against anything. Third comes the method itself. If a platform builds its message differently, reads bytes another way or maps them to a different range, a calculator built for the reference scheme will give a different roll from correct inputs, and the only fix is that platform's documented rule.

A real mismatch looks different: the revealed server seed does not hash to the commitment shown before play. That one deserves a screenshot and a complaint.

Why is dice the easiest game to check by hand?

Every other game adds a step. Crash runs x through a division and rounding, card games map it onto a deck, and mines needs a whole series of numbers to shuffle a board. Dice uses one number and one multiplication, which makes it the cleanest test of whether a site's published method matches what it actually does. The other games are compared side by side in our overview of provably fair games.

Verify a round from the middle of your history, not only the first one, because a mistake in how a site counts nonces shows up only after the first bet. With the example seeds, nonce 2 should give a roll of 97.15.

FAQ

01

How is a provably fair dice roll generated?

The server hashes your client seed and the round's nonce with its secret server seed, and the first bytes of the result become a number between 0 and 1. Under the reference scheme this site uses, that number times 10,001, rounded down and divided by 100, is the roll.
02

Why are there 10,001 possible rolls and not 10,000?

Both ends count. A range from 0.00 to 100.00 in steps of 0.01 has 10,001 values, so each exact roll has a chance of 1 in 10,001. Some games use a different range and therefore a different count.
03

What does roll under 50 mean?

You win if the roll lands below 50.00 and lose otherwise. With 10,001 almost exactly equally likely rolls, 5,000 of them are below 50.00, which is a win chance of 49.995%.
04

How is the dice multiplier calculated?

With a 1% house edge, the multiplier is 99 divided by the win chance in percent. A 49.5% chance pays 2.00×, a 10% chance pays 9.90×; the exact rule of each game is in its own fairness or help page.
05

Is it better to bet over or under?

Neither. A roll over 75.00 and a roll under 25.00 cover the same share of outcomes and carry the same edge, so the choice only changes which numbers you are rooting for.
06

Does a high multiplier have a worse house edge?

Not under a flat 1% edge. Every combination of win chance and multiplier returns about 99% of the stake on average (98.99% for 1.98× on under 50.00, once the 10,001-roll range is counted exactly); a high multiplier only makes the results swing more.
07

Can I check a dice roll by hand?

Yes, if you have the revealed server seed. You need an HMAC-SHA256 tool for the hash, and after that the arithmetic is four divisions and a multiplication. Our calculator does all of it in the browser.
08

Can the site change the roll after I bet?

Not without being caught, because the hash of the server seed was shown before the bet and any other seed would produce a different hash. What the check can't show is covered in what provably fair does not prove.
09

Are past rolls useful for predicting the next one?

No. Each roll comes from its own nonce and a fresh hash output, so a run of high rolls says nothing about the next one.