Casino math, played with fake money
House Edge Lab
Run thousands of simulated players through real casino math. Watch what happens to their bankrolls, and see why no betting system beats the house edge.
Play money only. Educational simulation. No accounts, no deposits.
Checking the lab...
Simulator
Pick a game and a betting system
Every player starts with the same bankroll and plays until they go broke, hit the take-profit target, or run out of rounds. Then you see how the whole crowd did.
Results show up here after your first run.
These results are from the previous run.
Results
In plain English
Bankroll over time
The shaded bands hold the middle 50% and the middle 90% of players. Hover, touch, or use the arrow keys to read values.
Where players ended up
Final bankroll of every player, in 30 bins.
The edge shows up
Realized RTP settles toward the theoretical line as bets pile up, while players drop out.
Provably fair
Check the server's randomness yourself
Some casinos let you verify each result with a commit-reveal scheme. Try one round here. Your browser does the checking, not the server.
- CommitThe server picks a secret seed and shows you only its SHA-256 hash. It can't change the seed after this.
- Add your seedYou choose a client seed and a nonce. The server never sees them until you ask for the result.
- Reveal and verifyThe server shows the secret seed. You hash it, compare it with the commitment, and recompute the result.
Step 1 and 2
Step 3
Get a commitment, then press Reveal to see the result and the checks.
Roulette number
Dice roll
Server seed
Verify it yourself in Python
Under the hood
How this runs
The simulation engine
Each run is vectorized numpy. All players move through each round together as arrays, so millions of bets take a second or two. It runs on a small ARM server in Amsterdam.
The RNG
The lab uses PCG64. It is fast and statistically solid, which is what a simulation needs. It is not a cryptographic generator. A real casino needs a certified CSPRNG that a test lab has signed off on.
The request path
The page talks only to this site. Requests to /lab-api go through the site's nginx to the lab VM.
No cookies, no analytics, nothing stored about you.
Where the book covers it
Chapter 15, Casino Mathematics & Game Economy, is the math behind this page. Chapter 17, Random Number Generation, covers where casino randomness comes from and how it gets certified.