Provably Fair

Every result is generated on our server from your own seed pair before you bet, and you can reproduce any bet yourself once the server seed is revealed. The code below is the code that runs the games.

How it works

  1. Commit. We generate a random server seed for you and show its SHA-256 hash before you bet. The seed itself stays secret.
  2. Your input. You choose (or accept) a client seed. We can't predict it, so we can't steer results.
  3. Nonce. Each bet uses the next nonce (0, 1, 2…), so every bet gets a unique random stream.
  4. Reveal. When you rotate your seed pair (Fairness button on any game), the old server seed is revealed. Hash it to check it matches the commitment, then replay any bet in the verifier.

You can't rotate while a multi-step round (blackjack, mines…) is unfinished, because revealing the seed would expose that round's cards or mines.

// lib/fair/rng.ts
bytes(cursor) = HMAC_SHA256(key = serverSeed, message = `${clientSeed}:${nonce}:${cursor}`)
float         = b0/256 + b1/256² + b2/256³ + b3/256⁴      // 4 bytes per float, 8 floats per HMAC
// when a block's 32 bytes are used up, cursor += 1

shuffle(n):  items = [0..n-1]; for i = n-1 down to 1: j = floor(float * (i+1)); swap(items[i], items[j])
sample(n,k): pool = [0..n-1]; repeat k times: j = floor(float * pool.length); take pool[j], remove it

Every game

Crash

Multiplayer. A chain of 1,000,000 SHA-256 hashes is generated in advance and only the final hash is published. Games use the chain backwards, so every revealed game hash satisfies sha256(hash) = previous game's hash, all the way to the published commitment. Cashouts are judged by server time only.

x = HMAC_SHA256(key = gameHash, message = salt)
U = first 52 bits of x / 2^52
crash = max(1.00, floor(100 * (1 - edge) / (1 - U)) / 100)
multiplier(t) = floor(100 * e^(0.00006 * t_ms)) / 100

Blackjack

A fresh 6-deck shoe (configurable) is shuffled with Fisher-Yates every round and dealt from the top: player, dealer, player, dealer (hole), then in play order. Dealer peeks on ace/ten; insurance pays 2:1; soft 17 rule and 3:2 / 6:5 are admin settings shown on the table.

shoe = shuffle(52 * decks).map(decode)

Roulette

European single-zero wheel. One float picks the pocket. Standard payouts (36× straight, 3× dozens/columns, 2× even-money); the 2.70% edge comes from the zero.

pocket = floor(float * 37)

Plinko

One float per row: under 0.5 bounces left, otherwise right. The bucket is the number of right bounces. The paid table is the published shape scaled so the exact binomial RTP equals the configured RTP.

for row in rows: step = float < 0.5 ? 0 : 1
bucket = sum(steps)

Dice

One float. The roll has 10,001 possible outcomes (0.00 – 100.00). You win if the roll is under (or over) your target.

roll = floor(float * 10001) / 100
multiplier = (1 - edge) * 10001 / winningOutcomes

Mines

Mine positions are drawn without replacement at round start. The multiplier after k safe tiles is (1 − edge) divided by the exact probability of surviving k reveals.

mines = sample(25, mineCount)
multiplier(k) = (1 - edge) * Π (25 - i) / (25 - mines - i)

Limbo

One float, mapped to a multiplier where P(result ≥ x) = (1 − edge) / x exactly. You win your target if the result reaches it.

result = max(1.00, floor(100 * (1 - edge) / (1 - float)) / 100)   // capped at 1,000,000x

Keno

10 numbers are drawn from 40 without replacement. Pay tables per pick count and risk are scaled to the configured RTP using exact hypergeometric odds.

drawn = sample(40, 10).map(n => n + 1)
hits = |picks ∩ drawn|

Goals

One keeper column per row is drawn at round start (sample without replacement, one per row).

keeper[row] = sample(cols, 1)[0]
multiplier(k) = (1 - edge) * (cols / (cols - 1))^k

HiLo

A single 52-card deck is shuffled with Fisher-Yates at round start and turned from the top. Odds for each guess are exact from the unseen cards, and the edge is applied once.

deck = shuffle(52)        // card c: rank = c % 13, suit = floor(c / 13)
multiplier = (1 - edge) / Π P(guess_i)

Coinflip

One float.

side = float < 0.5 ? 'heads' : 'tails'
multiplier = 2 * (1 - edge)

Diamonds

Five gems, each one float × 7 colours. Hands (5/4 of a kind, full house, 3 of a kind, two pair, pair) are counted exactly out of 7⁵ = 16,807 and the table scaled to the configured RTP.

gem[i] = floor(float * 7)

Wheel

One float picks the segment. Layouts (10–50 segments, low/medium/high risk) are scaled so every layout returns exactly the configured RTP.

segment = floor(float * segments)

Slots

3×3 grid, 9 floats in row-major order, each picking a weighted symbol (Gem 5, Crown 10, Bell 15, Star 20, Zap 25, Target 25 out of 100). Only the middle row pays: three of a kind or the first two matching.

symbol = first s where cumulativeWeight(s) > float * 100

Baccarat

8-deck shoe shuffled every round; cards dealt P1, B1, P2, B2, then third cards by the standard tableau. Player 1:1, Banker 1:1 less 5%, Tie 8:1.

shoe = shuffle(52 * 8).map(decode)

Video Poker

One 52-card deck shuffled at round start. Your hand is the first 5 cards; replacements come from card 6 onward, in order. Jacks or Better pay table (9/6 by default).

deck = shuffle(52); hand = deck[0..4]; draw = deck[5..]

War

6-deck shoe shuffled every round. Player gets card 1, dealer card 2. On a tie and 'go to war', cards 3–5 are burned and cards 6 and 7 are dealt.

shoe = shuffle(52 * 6).map(decode)

Deal or No Deal

16 case values (mean = the configured RTP) are placed with a Fisher-Yates shuffle at round start. Banker offers equal the average of the unopened cases, so every strategy has the same expected return.

cases = shuffle(16).map(i => values[i])

House edge & RTP

Games with a configurable edge pay tables scaled so the exact expected return equals the RTP shown on the game (rounded down to 0.0001×). Rule-based games (roulette, blackjack, baccarat, video poker, war) get their edge from their published rules. Every game is checked against its target with a 1,000,000-round simulation before release.