What this dice roller does
This dice roller is a digital version of ordinary dice, made for when you don’t have a set handy or need to throw many at once. You pick the type of die, choose how many to roll and hit Roll: you see the value of every die and the total sum instantly, with a history of your recent throws.
Everything happens inside your browser: nothing to install, no account to create, and no data ever leaves your device. You can roll a single 1d20 or twenty dice at once without the page slowing down.
What people use it for
- Tabletop role-playing games like Dungeons & Dragons (D&D): roll
1d20for attacks and saving throws, or3d6for a character’s ability scores. The modifier settles a2d6+3in one click. - Board games: replace the lost dice from Ludo, Monopoly or Catan. Two six-sided dice (
2d6) cover most classics. - Giveaways and quick decisions: give each person a number and let the die pick, or use the
D100to split percentages. - Classroom and probability: a great way to teach chance and statistics with real, repeatable rolls.
Polyhedral dice
Beyond the familiar six-sided cube, role-playing games popularized a whole set of polyhedral dice. Each one has a different number of faces and is named with the letter D followed by that number:
| Die | Faces | Range | Typical use |
|---|---|---|---|
| D4 | 4 | 1–4 | Damage from small weapons |
| D6 | 6 | 1–6 | The classic board-game die |
| D8 | 8 | 1–8 | Damage from medium weapons |
| D10 | 10 | 1–10 | Percentages and d10 systems |
| D12 | 12 | 1–12 | Damage from large weapons |
| D20 | 20 | 1–20 | The star of RPGs: checks and attacks |
| D100 | 100 | 1–100 | Percentage tables |
Dice notation
Role-playing games and many others use a compact notation shaped like NdX+M. The N is the number of dice, the X is the number of faces, and the M is a modifier added to or subtracted from the end. So 2d6+3 means “roll two six-sided dice and add 3.” This tool does that math for you: pick the die, the count and the modifier, and the result already has the sum applied.
Fair randomness
A die is only fair if every face has the same probability. That is why this tool does not use Math.random() (built for simulations). It uses crypto.getRandomValues, the browser’s cryptographically secure generator, with rejection sampling to remove the bias you would get from splitting 2³² values across a face count that is not a power of two. That keeps a D6 or a D20 perfectly balanced.
Worked example
Say your D&D character attacks with a sword and the sheet lists 2d6+3 damage. You choose the D6, set the count to 2 and the modifier to 3, then roll. The tool comes up with, for instance, a 4 and a 5:
- Sum of the dice: 4 + 5 = 9
- Modifier: +3
- Total: 9 + 3 = 12 damage
With 2d6 the most likely result is 7, because more combinations add up to 7 (1-6, 2-5, 3-4…) than to 2 or 12: the sum of two dice leans toward the middle.
Frequently asked questions
What is a D20?
A D20 is a twenty-sided die shaped like an icosahedron. It is the signature die of Dungeons & Dragons: almost every important action (attacking, dodging, persuading someone) is resolved by rolling 1d20 and adding your bonuses. A natural 20 is usually a critical success, and a natural 1 a failure.
What does 2d6 mean?
2d6 means “roll two six-sided dice and add their values.” The result ranges from 2 to 12, with 7 as the most frequent outcome. If you also see 2d6+3, that +3 is a modifier added to the sum of the two dice.
Is this dice generator fair?
Yes. Every face comes up with the same probability because the result is drawn from crypto.getRandomValues, the same randomness source that powers security keys, and modulo bias is corrected with rejection sampling. No face is favored and the outcome cannot be predicted.
How many dice can I roll at once?
Up to 20 dice per roll, of any type from the D4 to the D100. You will see the value of each die separately along with the total sum, modifier already applied.