Provably Fair Roulette: How a Seed Picks the Pocket, With the Odds
A seeded number picks the pocket from 0 to 36 in provably fair roulette. See why the house edge stays 2.70%, with a worked example you can recompute.
Updated November 6, 2026
Contents
- How does a seed become a pocket from 0 to 36?
- Can four bytes cover 37 pockets evenly?
- Where do 2.70% and 5.26% come from?
- Do the other bets on the layout carry the same edge?
- Why does provably fair roulette have the same edge as the wheel it copies?
- Does betting more spins or using a system change any of this?
Roulette verifier
Example round · RouletteCalculated result · Pocket
15
- Commitment matches the published hash
- No game result entered to compare
A mismatch has three usual causes: a copy error, a platform that hashes or maps the seed differently from this reference scheme, or a seed that was not the committed one. What to do when a check fails.
How this result was derived
- 1
Commitment, before the round
SHA-256(server seed) = f51376a5a542e19876a861e25e058cc522a304cd3edbd012bad096d8cc543de0 - 2
HMAC-SHA256 of
player-17:1:06bf446d5eea533d95c787f63c2ac5b6943a7f7dcf4dc68f9edf3569f0c50953f - 3
Bytes to a number in [0, 1)
0.4216961164 - 4
floor(x × 37) picks a pocket from 0 to 36 on a single-zero wheel
15
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.
-
Hash commitment
The server seed is hashed and the hash is shown before you play.
f51376a5a542e198… -
HMAC
Server seed as key, message player-17:1:0.
6bf446d5eea533d9… -
Number in [0, 1)
The first four bytes become one number.
x = 0.421696 -
Pocket
Floor(x × 37) picks a pocket from 0 to 36 on a single-zero wheel.
15
Server seed a411321f…fd78, client seed player-17, nonce 1. Feed those into the reference scheme and you get x ≈ 0.4216961164, which is the number this site uses for its example dice roll of 42.17. Multiply it by 37 and round down, and the ball lands on 15, black.
Only the source of the pocket changes. In provably fair roulette it comes from seeds you can recompute, as in the other seeded games, instead of from a ball and a spinning wheel. The odds stay put. A seeded single-zero game carries the same 2.70% house edge as the wheel it imitates, because the edge lives in the payout table, not in the way the number is chosen.
How does a seed become a pocket from 0 to 36?
The reference scheme this site uses runs in three steps. First, HMAC-SHA256 is computed with the server seed as the key and client seed:nonce:0 as the message. Second, the first four bytes of that output become a fraction, x, between 0 and 1; the byte-by-byte arithmetic is set out in the provably fair algorithm, step by step. Third, the game maps the fraction onto the wheel.
pocket = floor(x × 37) (0 to 36)
nonce 1: x ≈ 0.4216961164 → x × 37 ≈ 15.6028 → pocket 15
Because x is always below 1, x × 37 is always below 37, and rounding down gives a whole number from 0 to 36. Each pocket gets a slice of the range from 0 to 1 that is 1/37 wide. Pocket 0 owns everything under about 0.027, pocket 1 the next slice, and so on.
Run the same seed pair through the next few nonces and you get a short session you can check yourself:
Swipe the table
| Nonce | First four bytes | x | |
|---|---|---|---|
| 1 | 107, 244, 70, 213 | 0.4216961164 | 15 (black) |
| 2 | 248, 179, 11, 215 | 0.9714820290 | 35 (black) |
| 3 | 143, 15, 162, 95 | 0.5588323099 | 20 (black) |
| 4 | 192, 248, 159, 8 | 0.7537936587 | 27 (red) |
| 5 | 219, 19, 215, 45 | 0.8557714925 | 31 (black) |
Four blacks in five spins, by the way. That means nothing, and it would mean nothing at a real table either.
Real platforms do not all use this mapping. Some read different bytes, some build the HMAC message differently, and some map the number with a modulo instead of a multiplication. If you want to check a spin from a specific game, use the formula that game publishes; the verifier reproduces the reference scheme only.
Can four bytes cover 37 pockets evenly?
Almost. Four bytes give 232 = 4,294,967,296 equally likely values of x, and 4,294,967,296 divided by 37 is not a whole number. Under floor(x × 37), 30 pockets each receive 116,080,197 of those values and 7 pockets receive 116,080,198.
The difference is one value in about 116 million. No player will ever detect it, and it does not move the house edge in any meaningful way. Compare a careless design that reads a single byte and takes it modulo 37. A byte has 256 values, and 256 = 6 × 37 + 34, so 34 pockets would get 7 values each and pockets 34, 35 and 36 only 6. Those three would come up about 14% less often than the rest. It is still worth knowing about the four-byte case, because the same issue grows into a real bias when a game maps a small random range onto a number of outcomes that does not divide it. Our explanation of how the provably fair algorithm maps numbers goes through why the mapping step deserves as much scrutiny as the hash.
Where do 2.70% and 5.26% come from?
From the gap between the true odds and the payout. Take a straight-up bet of 1 unit on a single number. On a single-zero wheel there are 37 pockets. Over 37 spins in which each pocket comes up exactly once, you win once and collect 35, and you lose the other 36 stakes.
Single zero: (35 × 1 − 1 × 36) ÷ 37 = −1/37 ≈ −2.70%
Double zero: (35 × 1 − 1 × 37) ÷ 38 = −2/38 ≈ −5.26%
The same result appears on a red bet. Eighteen pockets win 1 unit, eighteen black pockets plus the green zero lose 1 unit, and the net is −1 per 37. Every standard bet on the single-zero layout is priced so the house keeps 1/37.
The double-zero wheel adds a 38th pocket and keeps the same payouts, so the shortfall becomes 2 units in 38, or 1/19. One bet on that layout is worse still: the five-number bet on 0, 00, 1, 2 and 3 carries a 7.89% edge.
Swipe the table
| Wheel and rule | Pockets | House edge | Applies to |
|---|---|---|---|
| Single zero (European) | 37 | 2.70% | All standard bets |
| Single zero with half back on zero | 37 | 1.35% | Even-money bets only |
| Double zero (American) | 38 | 5.26% | All bets except the five-number bet |
| Double zero, five-number bet | 38 | 7.89% | 0, 00, 1, 2, 3 |
Do the other bets on the layout carry the same edge?
On a single-zero wheel, yes, and the reason is neat. Every inside and outside bet pays one unit less than the fair price for the number of pockets it covers. A bet covering n pockets wins with probability n/37 and pays (36 ÷ n) − 1 to 1, so the total returned over 37 equal spins is always 36 units for 37 staked.
Swipe the table
| Bet | Pockets covered | Pays | Chance on single zero |
|---|---|---|---|
| Straight up | 1 | 35 to 1 | 1 in 37 (2.70%) |
| Split | 2 | 17 to 1 | 2 in 37 (5.41%) |
| Street | 3 | 11 to 1 | 3 in 37 (8.11%) |
| Corner | 4 | 8 to 1 | 4 in 37 (10.81%) |
| Six line | 6 | 5 to 1 | 6 in 37 (16.22%) |
| Dozen or column | 12 | 2 to 1 | 12 in 37 (32.43%) |
| Red, black, odd, even, high, low | 18 | 1 to 1 | 18 in 37 (48.65%) |
So the choice of bet changes how often you win and how much each win pays, never the long-run price. The pocket from our nonce 1 example, 15, would have paid a straight-up bet on 15, a red/black bet on black, the second dozen (13 to 24), and the third column, which holds every multiple of 3.
This is also where a seeded game is easy to audit beyond single spins. Since every bet is just a set of pockets, a script that recomputes the pocket for each nonce can settle every bet type in your history at once. One recompute per spin covers every bet.
The single-zero wheel itself has a date attached: François and Louis Blanc introduced it at Bad Homburg in 1843, and it is still the better of the two common layouts by a factor of almost two.
Why does provably fair roulette have the same edge as the wheel it copies?
Because fairness here means the outcome is uniform and fixed in advance, and a uniform outcome on 37 pockets with 35 to 1 payouts produces exactly the house edge calculated above. The seed system guarantees the 1/37 probability per pocket; the payout table then takes its 2.70% from that probability, the same as at a physical table.
This trips people up. A provably fair label sounds like a better deal, and it is not one. It answers a different question: whether the operator could have picked the pocket after seeing your chips. With a published commitment, that would require finding a new server seed whose SHA-256 hash matches the one already shown, which is not feasible.
What the label does not cover is just as important. A game could offer a double-zero layout under a roulette name, or pay 34 to 1 on straight-up bets, and every spin would still verify perfectly. Read the payout table before you play. The page on what provably fair does not prove lists the other gaps.
Does betting more spins or using a system change any of this?
No. Every spin uses a new nonce and a fresh slice of HMAC output, so spins are independent. A progression such as doubling after a loss changes the size and timing of your bets, not the 2.70% each of them carries. We work through the numbers in why the Martingale strategy fails, and the general relationship between edge and long-run loss is covered under house edge by game.
A seeded wheel also lets you audit a whole session afterward. A casino wheel can't. After the server seed is revealed, every nonce from the first spin to the last can be recomputed, so a list of 200 spins becomes 200 checks.
Sources
References behind this guide.
5 references
- 01 Wizard of Odds, Roulette basics (opens in a new tab)
- 02 Wikipedia, Roulette (opens in a new tab)
- 03 IETF RFC 2104, HMAC: Keyed-Hashing for Message Authentication (opens in a new tab)
- 04 NIST FIPS 180-4, Secure Hash Standard (opens in a new tab)
- 05 National Council on Problem Gambling, 1-800-MY-RESET helpline FAQ (opens in a new tab)
Keep reading
- Odds House Edge Explained House edge explained: how the casino's built-in share is computed, what it is by game from blackjack to keno, and what it costs over hundreds of bets. Read guide
- Odds Gambler's Fallacy Explained The gambler's fallacy explained with real examples: Monte Carlo 1913, lottery players, umpires, the hot hand debate and why each round stays independent. Read guide
- Games Provably Fair Dice 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. Read guide