How the Dice Roller Works
Choose a die, choose how many to roll, add a modifier if your game calls for one, and press Roll. The dice tumble through a quick shuffle of faces — a nod to shaking real dice in your hand — then settle on the final roll. Underneath, each settled face is an independent draw from your browser's cryptographic random generator, and the page shows its working in full: every face, the dice sum, the modifier, the final total, the average per die, and the highest and lowest die.
Rolls are kept in a short history — the last ten, with their dice and faces — so a table can settle disputes and you can spot your hot streaks. The history lives only in this page: nothing is saved to an account, because there is no account, and refreshing the page clears it.
Dice Notation: What 2d6+2 Means
Dice notation is the shorthand games use to describe a roll, and it reads in three parts: [how many] d [how many faces] [modifier]. The first number is the count of dice, the letter d simply means "die", the second number is the die type, and the trailing + or − is a fixed modifier added to the sum.
- 1d20 — roll one twenty-sided die. The classic check roll.
- 2d6 — roll two six-sided dice and add them. The board-game standard.
- 3d8+4 — roll three eight-sided dice, add them, then add 4.
- 1d100 — one percentile roll from 1 to 100.
The notation line above the Roll button always shows your current setup in this form, so what you see is exactly what a rulebook would ask for.
The Polyhedral Dice Set
A standard polyhedral set has seven dice. Board games made the d6 universal, but tabletop role-playing games use the whole family — different dice for different weapons, spells and checks, because the die size is a simple dial for how swingy a result feels: a d4 is cramped and predictable, a d20 is wide and wild.
| Die | Faces | Average roll | Commonly used for |
|---|---|---|---|
| d4 | 4 | 2.5 | Small damage rolls — daggers, darts, low-level spells; also caltrop-shaped and famously painful to step on. |
| d6 | 6 | 3.5 | The board-game standard, and the RPG workhorse: damage, attributes and big spell pools like 6d6. |
| d8 | 8 | 4.5 | One-handed weapon damage (longsword, mace) and several classes' hit dice. |
| d10 | 10 | 5.5 | Heavy weapon damage, fighter hit dice — and, paired or alone, percentile rolls. |
| d12 | 12 | 6.5 | The biggest damage die (greataxe) and the barbarian's hit die. |
| d20 | 20 | 10.5 | The d20 system's core: attack rolls, ability checks and saving throws. |
| d100 | 100 | 50.5 | Percentile rolls: encounter tables, wild magic, percentage-skill systems. |
Averages matter more than maximums when you are choosing between options: a weapon rolling 1d12 (average 6.5) and one rolling 2d6 (average 7) look similar on paper, but 2d6 lands near its average far more often — the probability section below shows why.
Probability Basics: Averages and Two-Dice Totals
A single fair die is flat: every face is equally likely, so its long-run average is simply (faces + 1) ÷ 2 — 3.5 for a d6, 10.5 for a d20. Add a second die and the picture changes completely. Two dice produce a curve, not a flat line, because there are more ways to make the middle totals than the extremes: only one combination of two dice makes 2 (1+1), but six combinations make 7.
| 2d6 total | Combinations (of 36) | Chance |
|---|---|---|
| 2 | 1 | 2.8% |
| 3 | 2 | 5.6% |
| 4 | 3 | 8.3% |
| 5 | 4 | 11.1% |
| 6 | 5 | 13.9% |
| 7 | 6 | 16.7% |
| 8 | 5 | 13.9% |
| 9 | 4 | 11.1% |
| 10 | 3 | 8.3% |
| 11 | 2 | 5.6% |
| 12 | 1 | 2.8% |
That curve is why 2d6 averages exactly 7 and lands on 6, 7 or 8 almost 42% of the time, while a single d12 — same rough range — hits every value from 1 to 12 with equal 8.3% probability. When a game gives you 2d6 it is promising reliability; when it gives you 1d12 it is promising drama. The average shown with each roll on this page lets you watch the law of large numbers do its work over a session.
How the Randomness Works
A dice roller is only worth using if its rolls are genuinely fair, so this page does not rely on the everyday Math.random() function. Every face is drawn from crypto.getRandomValues, the cryptographic random number generator built into modern browsers — the same source used to generate encryption keys and secure tokens.
There is one subtlety, and the page handles it properly. Turning a big random number into a die face by taking a remainder (modulo) can very slightly favour the lower faces, because the random range does not divide exactly by the number of faces. The fix is rejection sampling: any random value in the small leftover range is discarded and drawn again, which makes every face exactly equally likely. It costs a redraw once in a great while and removes the bias entirely.
Each die is drawn independently, rolls do not influence each other, and nothing about your rolls leaves your device. Fair dice, honestly generated, with the method stated on the page — that is the whole design.
Sources & References
- MDN Web Docs — Crypto.getRandomValues(): the cryptographic random source this roller uses, its guarantees and usage — developer.mozilla.org — Crypto.getRandomValues()
- MDN Web Docs — Web Crypto API: the browser cryptography interface behind getRandomValues — developer.mozilla.org — Web Crypto API
- MDN Web Docs — Math.random(): why the general-purpose generator is a different tool for a different job — developer.mozilla.org — Math.random()
This roller is for games, teaching and fun. Its rolls are generated fairly by the method described above, but no online roller can certify results for gambling or competition use — and rolling well here, sadly, does not guarantee rolling well at the table.