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.

Try a preset:

Loading game settings from the lab...

The first bet. Betting systems grow or shrink it from here.

The biggest bet the table accepts. Martingale runs into this wall.

Walk away at this multiple of the start. 2 means stop after doubling up. Above 1, up to 1,000.

The same seed and settings give the same run.

Results show up here after your first run.

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.

  1. CommitThe server picks a secret seed and shows you only its SHA-256 hash. It can't change the seed after this.
  2. Add your seedYou choose a client seed and a nonce. The server never sees them until you ask for the result.
  3. 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.

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.

browser → site nginx → 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.

Read more at thebackendofluck.com