Mechanics
How a Slot Machine spin is actually built, from seed to settlement.
Spinning the reels
- 1Commit — a rotating server seed is generated, and its SHA-256 hash is published on the Sui blockchain before anyone spins. The seed itself stays secret.
- 2Mix — when you spin, we hash your client seed, the secret server seed, your bet's on-chain transaction digest, and its timestamp together.
- 3Draw — that hash keys an HMAC-SHA256 keystream. Five values are drawn from it, each rejection-sampled into the range 0–39 so every position on the strip is exactly equally likely.
- 4Map — each draw lands on the 40-position reel strip and becomes a symbol. The same strip is used for all five reels.
- 5Reveal — once the seed rotates out of service we publish it, and you can repeat all of the above yourself.
Why rejection sampling
Taking a 32-bit random word modulo 40 looks harmless and is not: 40 does not divide 2³², so the first 16 strip positions would come up slightly more often than the last 24. On this strip that quietly favours the house. Instead we discard the short tail above the largest multiple of 40 and draw again — the same sampler our card shoes use, so there is one implementation to audit rather than two.
Settlement
Symbols are counted across the five reels, every animal reaching its minimum is paid, and the totals are added. Payouts are computed in whole MIST using exact integer fractions and always rounded down, so the arithmetic is reproducible to the last unit.
The house cannot be caught short
Before the reels are drawn — before anyone, including us, knows the outcome — the table reserves the worst case: the full 100× grand prize on your stake. It checks that figure against both the house balance and the per-round exposure ceiling. Checking only what the spin happened to pay would let the table accept a jackpot it could not honour and discover the problem at payout time, which is too late.
The digest of your bet transaction is also claimed before the reels are drawn, and it is claimed in a namespace shared by every game on the site. One on-chain transfer funds exactly one bet, anywhere at Llamabet.
Large wins go to a person
A win at or above the high-stake line is not paid automatically. It is recorded for manual approval, and the casino stops accepting new bets until it is resolved. At a 100× top prize this is unlikely to trigger from a modest stake, but the rule is the same at every table.
What your play earns
Slots contributes to rewards on exactly the same basis as every other table: revenue contributed, which is your stake multiplied by the house edge — not raw wagered volume. That figure drives your leaderboard rank, your share on the profit-sharing page, and the $LLAMA your play mints. Slots is booked at 400 basis points, deliberately a shade below the true 400.004 bp edge so a spin can never be over-credited.