Dice Roller
Roll any dice notation — 2d6, 1d20+5, 4d6 — with fair randomness and a history of every roll.
Loading tool…
Everything runs in your browser. Nothing is uploaded, nothing is stored on a server, and closing the tab clears it.
What the Dice Roller does
This dice roller will roll any dice notation — 2d6, 1d20+5, 4d6 — with fair randomness and a history of every roll. Everything runs inside this page, so the work happens on your own device rather than on a server. It is most often used for playing a tabletop game without physical dice. People using this often want the uneven bill split calculator next.
How to use it
- Type dice notation such as 2d6 or 1d20+5, or tap a preset.
- Press Roll. Each die is shown separately with the total beneath.
- Maximum and minimum rolls are marked so a critical is obvious.
- Every roll stays in the history for the session.
How it works
Standard dice notation is NdF±M: the number of dice, the number of faces, and an optional modifier. 2d6 rolls two six-sided dice. 1d20+5 rolls one twenty-sided die and adds five. 4d6−1 rolls four and subtracts one from the total. It is the notation every tabletop rulebook uses, which is why it is the input here rather than a set of dropdowns.
Each die comes from crypto.getRandomValues with rejection sampling rather than Math.random modulo the face count. The modulo shortcut is subtly biased towards the low faces whenever the die size does not divide the generator's range evenly — for a six-sided die against a 32-bit range the bias is about one part in seven hundred million, undetectable in play and wrong nonetheless. Rejection sampling discards the values in the final incomplete bucket, which costs almost nothing and makes every face exactly equally likely.
The possible minimum, maximum and average are shown alongside the result because they are what tell you whether a roll was lucky. The average of NdF is N(F+1)/2, so 2d6 averages 7 and 3d6 averages 10.5. Rolling 4 on 3d6 is unlucky; rolling 4 on 1d20 is unremarkable. The figures make that difference visible without any mental arithmetic.
Worth knowing for anyone designing a game: several dice do not behave like one big die. 3d6 ranges from 3 to 18 like a d16 offset, but it is strongly peaked in the middle — a 10 or 11 is about twenty-five times more likely than a 3. One d20 is flat, with every result equally likely. That difference between a bell curve and a flat distribution is the main reason systems choose one over the other.
When to use it
- Playing a tabletop game without physical dice.
- Rolling character statistics or random tables.
- Settling something at random with a specific range.
- Demonstrating probability distributions to a class.
Common mistakes to avoid
- Treating 3d6 as equivalent to a flat roll between 3 and 18. It is strongly peaked in the middle.
- Forgetting the modifier, which changes the possible range as well as the total.
- Expecting a run of high rolls to be "due" a correction. Dice have no memory.
Frequently asked questions
Is this dice roller actually fair?
Yes. It uses the browser's cryptographic random generator with rejection sampling, so every face is exactly equally likely. The common Math.random-modulo approach is very slightly biased towards low faces; this avoids that entirely.
What does 2d6 mean?
Roll two six-sided dice and add them. The notation is NdF: N dice of F faces, with an optional +M or −M modifier applied to the total.
Why does 3d6 feel different from 1d18?
Because it is. 3d6 is a bell curve peaking at 10 and 11, which are about twenty-five times more likely than a 3. A single die is flat, with every result equally likely. Game systems choose between them deliberately.