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
  1. How does a seed become a pocket from 0 to 36?
  2. Can four bytes cover 37 pockets evenly?
  3. Where do 2.70% and 5.26% come from?
  4. Do the other bets on the layout carry the same edge?
  5. Why does provably fair roulette have the same edge as the wheel it copies?
  6. Does betting more spins or using a system change any of this?

Roulette verifier

Example round · Roulette

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 · Pocket

15

  • 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 × 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.

  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. 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:

Nonce First four bytes x Pocket
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.

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.

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.

FAQ

01

How does provably fair roulette pick a number?

The game turns the server seed, your client seed and the nonce into a number x between 0 and 1, then maps x to one of the pockets. In the reference scheme this site uses, the pocket is floor(x × 37) for a single-zero wheel.
02

What is the house edge in single-zero roulette?

It is 1/37, or 2.70%, on every standard bet. A straight-up bet pays 35 to 1, but there are 37 pockets, so on average you lose one unit for every 37 staked.
03

Why is American roulette worse for the player?

The extra double-zero pocket makes 38 pockets while the payouts stay the same. That doubles the gap to 2 units per 38, which is 5.26%.
04

Is provably fair roulette better odds than a regular casino wheel?

No. A provably fair version that copies a single-zero wheel and its payouts has the same 2.70% edge as that wheel. The difference is that you can check each spin was fixed before you bet, which a physical wheel cannot offer.
05

Can the game see my bet and then choose a losing pocket?

Not when the commitment works as intended. The server seed is hashed and published before you bet, and the pocket follows from that seed plus your client seed and nonce, so changing the result would mean changing a seed that is already committed.
06

Does the zero count as red or black?

Neither. Zero is green, which is why red/black, odd/even and high/low bets all lose when it comes up, and it is the whole source of the house edge on those bets.
07

Are some pockets more likely than others in seeded roulette?

In the reference scheme, almost not at all. The four bytes give 4,294,967,296 possible values, which do not split evenly into 37, so 7 pockets get one extra value out of about 116 million. That difference is far too small to matter.
08

Does a long run of red make black due?

No. Each spin uses a new nonce and is independent of the last one. Our page on the gambler's fallacy explains why streaks feel meaningful and are not.
09

How can I check a roulette spin myself?

Take the revealed server seed, your client seed and the nonce, run them through the verifier to get x, and multiply by 37. Platforms differ in their exact mapping, so confirm the formula the game publishes before you compare.