Monte Carlo check
Run the probability-lab expression many times with the same secure random source and compare the observed event rate.
Roll one die, a mixed tabletop pool, or full RPG notation. Results use browser Web Crypto with rejection sampling, and the probability lab shows what the same roll should do in theory.
Examples: 1d20+5, 2d6+1d8+3, 2d20kh1, 4d6kh3, 4d6dl1. Use kh/kl to keep or dh/dl to drop.
Your dice will appear here.
For ordinary dice sums, compute the exact discrete distribution instead of estimating it.
Exact distribution currently supports additive/subtractive dice groups and flat modifiers without keep/drop operators, with a bounded state range for browser safety.
Run the probability-lab expression many times with the same secure random source and compare the observed event rate.
Roll one selected die 5,000 times and inspect its frequency spread and χ² snapshot. Random samples will never be perfectly flat.
This is a deterministic learning puzzle, not a random roll.
Loading…
No rolls yet.
Roll two six-sided dice, add their faces, then add 3. The possible total is 5 through 15.
Roll two d20s and keep the higher result. This is the familiar advantage pattern. kl1 keeps the lower.
Roll four d6s, discard the lowest, and total the other three. dh1 drops the highest instead.
Each face is chosen with rejection sampling from crypto.getRandomValues(), avoiding simple modulo bias when the number of sides does not divide the raw integer range.
Actual rolls use crypto.getRandomValues(). The mapper rejects the small tail of 32-bit values that would make a plain remainder uneven, then maps the accepted value to a die face.
If Web Crypto is unavailable, rolling is disabled instead of silently switching to Math.random().
The exact lab uses discrete convolution for ordinary additive dice expressions. Keep/drop notation can still be rolled, but is intentionally excluded from the exact-distribution calculator on this version so the page does not pretend to solve a different sample space.
This is a local dice and probability tool for tabletop games, classrooms, practice, and everyday random decisions. It is not an audited physical random-number source and is not intended for gambling, regulated drawings, cryptographic key generation, or other high-stakes outcomes.