Casino Originals Seed Math
Comprehensive mathematical derivation of casino original games (Stake Originals, Roobet, Gamdom) from deterministic HMAC-SHA256 seed pairs and round nonces.
Byte-to-Float Conversion Principle
For each round nonce $n$, an HMAC-SHA256 digest is generated with the active server seed as key and {clientSeed}:{nonce}:{round} as message. The resulting 32 bytes are sliced into 4-byte chunks and mapped to a continuous uniform distribution in the interval $[0, 1)$:
function bytesToFloat(bytes: Uint8Array, offset = 0): number {
return (
bytes[offset] / 256 +
bytes[offset + 1] / (256 ** 2) +
bytes[offset + 2] / (256 ** 3) +
bytes[offset + 3] / (256 ** 4)
);
}Originals Game Outcome Formulations
1. Stake Limbo & Crash
Accounting for a 1% house edge (99% RTP), the crash point multiplier is calculated by mapping the 32-bit float:
If the resulting value is less than 1.00x, it is capped at 1.00x.
2. Stake Dice (0.00 – 100.00)
The float is scaled across 10,001 discrete divisions to produce a two-decimal outcome:
3. Stake Plinko (8–16 Rows)
Each row consumes 1 float. If $f \ge 0.5$, the ball deflects right (+1), otherwise left (+0). The total count of right deflections determines the terminal payout pocket index.
4. Mines (25-Cell Fisher-Yates)
Uses an unbiased Fisher-Yates shuffle across grid positions $0$ to $24$ to plant $M$ mines without collision.