Provably Fair Games

Provably Fair Games: How Each One Turns a Seed Into a Checkable Result

Provably fair games compared: how crash, dice, hi-lo, roulette, blackjack, mines, plinko and Aviator turn a seeded number into a result you can check.

One seed pair, one nonce, one number: 0.4216961164. Read as a dice roll it is 42.17. Read as a crash point it is 1.71×. As a card it is the 9 of hearts, and on a single-zero roulette wheel it lands on pocket 15.

All provably fair games start from a number like that one, produced from seeds the game committed to before you bet. They differ in what they do next: how the number becomes a roll, a multiplier, a card, a pocket, a board or a path down a peg board. This page compares those mappings side by side and sends you to the page for each game.

If you just want to check a round, the provably fair calculator is the shortcut. If you want to know why a check works for one game and not another, read on.

What do all provably fair games have in common?

Three steps, in the reference scheme this site uses. Before play, the server picks a secret server seed and shows you its SHA-256 hash, a 64-character commitment. Each bet then gets a number from HMAC-SHA256, keyed with the server seed, over a message built from your client seed, the nonce and a cursor. The first four bytes of that output become x, a number between 0 and 1.

In the example round those bytes are 107, 244, 70 and 213, which give x ≈ 0.4216961164; the full derivation, with every intermediate value, is in how the provably fair algorithm works. That part doesn't care which game you play. Real platforms vary the message format and the way bytes are read, so treat this as one well-documented design rather than the only one.

How does each game turn the number into a result?

The mapping is where games really differ. Some need one number, some need dozens, and some build the house edge into the mapping itself.

Game What the number becomes How it is mapped Reproduced by this site's calculator
Dice A roll from 0.00 to 100.00 floor(x × 10,001) ÷ 100 Yes
Crash A crash point of 1.00× or more max(1.00, floor(99 ÷ (1 − x)) ÷ 100) Yes
Hi-Lo One card from a 52-card deck floor(x × 52), deck ordered A–K by suit First card only
Roulette A pocket from 0 to 36 floor(x × 37) on a single-zero wheel Yes
Blackjack The order of a shuffled deck A seeded Fisher–Yates shuffle, one number per swap Yes (the deck order)
Mines The mine positions on a 25-tile board A seeded shuffle of the 25 tiles Yes (three mines)
Plinko A path through the rows of pegs One number per row: below 0.5 left, otherwise right Yes (16 rows)
Aviator A crash point SHA-512 of a combined seed; mapping not published No

Every row except Aviator is the reference scheme this site uses, and the values in the opening come from the site's own code; pocket 15 is simply floor(x × 37) applied to the same x. The multi-number games read further numbers from the same HMAC output and then from higher cursors, which the individual game pages work through. A given platform may differ in detail. Aviator is in a category of its own, because its method is the provider's and only part of it is public.

Which games need one number, and which need many?

Dice, crash, roulette and the first Hi-Lo card each use a single x. That makes them quick to check: one hash, one formula, one result.

The rest need a stream of numbers. A blackjack shuffle of 52 cards takes 51 swaps, each needing its own random integer. A mines board shuffles its 25 tiles, one number per mine in the reference scheme. A plinko ball needs one left-or-right decision per row, so a 16-row board needs 16 numbers. A Hi-Lo game needs a fresh number for every new card.

Games get those extra numbers in one of two ways. One HMAC-SHA256 output has 32 bytes, enough for eight numbers of four bytes each, and when a game needs more it raises the cursor at the end of the message from 0 to 1, 2 and so on. The other approach spends a new nonce on each draw. Both are fine, but you need to know which one a game uses to repeat its results, and this is the detail fairness pages most often leave vague.

Why does the mapping matter as much as the seed?

Because the mapping is where both the edge and most mistakes live. In crash, the 99 in the formula takes 1% off every possible multiplier. In roulette, the zero pocket does the same job: 1 pocket in 37 on a single-zero wheel, which works out to a 2.70% edge, and 2 in 38 on a double-zero wheel, 5.26%. In plinko, the multipliers printed under the slots decide the edge. They can be set to anything.

A mapping can also be subtly unfair even when the seed is sound. Turning a big random number into a small range with a remainder operation, for example, can make some results slightly more likely than others if the range doesn't divide evenly. Scaling a fraction between 0 and 1, as the reference scheme does, avoids the worst of this. A published mapping lets you check for problems like that; an unpublished one asks you to trust it.

What should a game's fairness page tell you?

Enough to repeat a result on your own. In practice that means five things: the hash function used for the commitment, the exact layout of the message that gets hashed, which bytes are read and how they become a number, how that number becomes the game's result, and how the nonce or cursor advances from one draw to the next.

Most fairness pages cover the first two well. The last three are where they get thin, and they are exactly the parts that decide whether your own calculation will match. A page that says results are generated from the hash, without saying how, gives you a commitment you can check and a result you can't.

If a game's page is missing a step, the game may still be fair. You just can't show it yourself.

Which game page should you read first?

Start with the game you actually play. If you'd rather learn the method, start with the simplest and work up.

Dice is the cleanest example of the whole idea: one number, one multiplication, and a worked round from seed to 42.17. Hi-Lo adds cards and the question of how a game picks the second card after the first. Crash is where the math gets interesting, because a short formula produces a long-tailed distribution and a predictable 1.98% of rounds that end at 1.00×.

Aviator is the crash game most people have actually seen, and its design, a server seed mixed with three players' seeds, is different enough to need its own page. Roulette shows how the familiar single-zero and double-zero edges come out of a seeded pocket. Blackjack, mines and plinko are the multi-number games, and each page explains its shuffle or path along with the odds that follow.

Whichever game you open, the same caution applies. A check that passes proves the result followed from the committed seed. It doesn't prove anything about payouts, withdrawals or the people running the game. And before you check a game that isn't in the reference scheme, find its published method first, because the calculator on this site will give a different result for any game that maps its numbers another way.

FAQ

01

Which games can be provably fair?

Any game whose result can be computed from a random number can be built this way, which covers dice, crash, card games, roulette, mines, plinko and more. What makes a particular game provably fair is that it commits to its seed before you bet and publishes the method that turns the seed into a result.
02

Do all provably fair games use the same algorithm?

No. Most share the commit-reveal idea and a keyed hash, but they differ in how they build the message, which bytes they read and how they map the number to a result. Two games can both be honest and still not be checkable with the same tool.
03

Which provably fair game is easiest to verify?

Dice. It uses one number and one multiplication, so the whole check fits on a few lines. Provably fair dice has a worked example.
04

Can this site's calculator check every game on this page?

Seven of them, under the reference scheme this site uses: crash, dice, hi-lo (first card), roulette, blackjack (the shuffled deck), mines (three mines) and plinko (16 rows), plus limbo. Aviator follows its provider's own method, so only its published parts can be checked. The commitment check works for any game that publishes SHA-256 of its server seed.
05

Does provably fair mean a lower house edge?

No. Provably fair is about whether the result can be checked, not about what the game pays. The edge sits in the payout table or the formula, and our house edge page explains how to read it.
06

Why do card and grid games need more than one random number?

A dice roll needs one number, but a shuffled deck or a mines board needs one for each swap in the shuffle. Games get those extra numbers by reading more bytes from the hash output or by hashing again with a higher cursor.
07

Is Aviator verified the same way as other crash games?

No. Spribe describes a combined seed made from the server seed and the first three bettors' seeds, hashed with SHA-512. The write-up on Aviator's provably fair design covers what is and isn't published.
08

Is it legal to play these games?

That depends on your country and, in the US, your state. Check local law before playing any of them for money.