Dice roller
Roll from 1 to 20 dice with 2 to 100 sides, add a modifier, and see each result and the total. Or flip coins. Rolls use your browser's secure random generator, so they are fair.
How to use it
- Choose Dice or Coin in What to roll.
- Set How many, the Sides per die and a Modifier if you need one.
- Click Run. Click again to roll again.
Complete guide to rolling dice and flipping coins online
What the dice roller is for
Board games, tabletop role-playing games, classroom probability lessons, and quick decisions all need a fair random result when no physical dice are at hand. This tool rolls from 1 to 20 dice at once, with 2 to 100 sides each, adds an optional modifier, and shows every die plus the total. It can also flip coins. Nothing is rolled until you click, so you control when each throw happens.
How the rolls are generated
Each die uses the secure random generator built into your browser (crypto.getRandomValues), not the simple pseudo-random function many web tools use. To avoid bias, numbers that would make some faces slightly more likely are discarded and drawn again, a method called rejection sampling. The result is that every face has exactly the same chance, and dice never influence each other. The tool keeps no history: each click is a fresh, independent roll, and nothing leaves your browser.
Reading the notation
Dice are written as NdS+M: N dice with S sides each, plus a modifier M. So 2d6+3 means two six-sided dice added together, then 3 added to the total. The Possible range line shows the lowest and highest total you can get, which is N + M to N x S + M.
| Die | Sides | Common use |
|---|---|---|
| d4 | 4 | Small weapon damage in role-playing games |
| d6 | 6 | Board games, classic dice |
| d8, d10, d12 | 8, 10, 12 | Damage and hit dice in many tabletop systems |
| d20 | 20 | Attack and skill checks |
| d100 | 100 | Percentile rolls, random tables |
Worked example
- In What to roll choose Dice. Set How many (1 to 20) to 2, Sides per die to d6 (6 sides) and Modifier (added to the total) to 3, then click Run.
- The Result block shows Notation
2d6+3and Possible range5 - 15. The Total and Sum of dice are random. If the dice happened to show 2 and 4, the Individual results list would end with2 + 4 + 3 = 9. - For an unusual die choose Other number of sides and fill Custom sides (2 to 100). With 3 dice, 8 sides and modifier -2 the notation is
3d8-2and the range1 - 22. - To flip coins choose Coin (heads or tails). The result shows how many heads and tails came up and the number of flips. Sides and modifier are ignored for coins.
What to expect from the numbers
A single die is flat: on a d20 every face has a 5 percent chance. Adding dice changes the shape. With two d6, a total of 7 has 6 ways out of 36 combinations (about 16.7 percent), while 2 and 12 each have only 1 way (about 2.8 percent). That is why totals near the middle show up most. Short streaks of the same result are normal in random data and do not mean the dice are broken.
Tips and common mistakes
- Custom sides is used only when Other number of sides is selected. Otherwise the value in the list is used.
- The modifier is added once to the whole total, not to each die.
- Counts must be whole numbers from 1 to 20, and sides from 2 to 100. Anything else shows an error message.
- For a competitive game with stakes, agree beforehand on who clicks and whether results can be re-rolled.
Related tools
For a single number in any range use the random number generator. To draw winners from a list of names use the random name picker.
Questions
Are the rolls fair?
Yes. Each roll uses crypto.getRandomValues with rejection sampling, so every side has exactly the same chance. There is no modulo bias.
What does the modifier do?
It is added once to the total of all dice, like the +3 in 2d6+3. Use a negative number to subtract.
What is d100?
A 100-sided die, rolling 1 to 100. It is the percentile die used in many tabletop role-playing games.
Does it remember previous rolls?
No. Every click is a fresh, independent roll, and nothing is stored or sent anywhere.