Pick a die type and count, then roll — every die shown with the total, great for board games and RPGs.
What Is Dice Roller
A dice roller generates fair random rolls: pick d4–d20 and the count, and it shows every die plus the total. It uses the browser’s Math.random — fine for games, not for cryptography or gambling. For probability questions (what are the odds of rolling 7?) see the Dice Probability Calculator.
How to Use
- Pick the die type.
- Enter the number of dice.
- Click “Roll Dice”.
Formula
Each die = 1 + floor(random × sides).
Worked Example
3d6 → three values 1–6, e.g. 4, 2, 6 = total 12 (actual rolls vary).
How It Works, In Plain Words
Every roll starts with the browser’s built-in random generator, Math.random, which produces a decimal fraction somewhere from 0 up to — but never quite reaching — 1. The roller multiplies that fraction by the number of sides on the die you picked: for a d6 the result is a decimal from 0 up to just under 6. It then rounds down to the whole number below, which leaves one of 0, 1, 2, 3, 4 or 5, and adding 1 shifts those six possible outcomes onto the faces of the die: 1 to 6. That is exactly the formula above — each die = 1 + floor(random × sides). Because the original fraction is equally likely to land anywhere in its range, it drops into each of the equal-sized bands just as readily as any other, which is why every face has the same chance. The two inputs simply set the scene: the die type provides the “sides” in the formula, and the number of dice says how many times the whole process repeats. Each die is generated independently, listed on its own, and only then added into the total.
Real-World Uses
A family settles down to a board game and finds the dice missing from the box. Instead of abandoning the evening, someone opens this page on a phone, sets the count to two d6, and the phone passes around the table like the dice would have. A Dungeons & Dragons group uses it through a whole session: 3d6 again and again when characters are being created, then a single d20 whenever the game calls for a check, with each die shown so everyone at the table can see the roll was honest. A teacher introducing probability rolls 3d6 with the class repeatedly, comparing the totals with the long-run average of 10.5 from the FAQ below, so pupils can watch real results gather around the middle without ever being forced there.
Benefits
- d4–d20 supported
- Every die shown, not just the total
- Up to 100 dice
- Great for D&D and board games
Features of Our Tool
- Instant results in your browser
- No sign-up, no download, 100% free
- Works on mobile, tablet and desktop
- Clear step-by-step explanation below the tool
- Private — your entries never leave your device
Common Mistakes
- Using it for cryptography or real gambling — Math.random is not secure
- Expecting “fair” to mean “even spread” in few rolls
- Confusing the roller with the probability calculator
Common Mistakes to Avoid
Never use this roller for anything that needs secure randomness — cryptography, passwords or real-money gambling. Math.random was built to look random in everyday use, not to withstand anyone trying to predict it. Second, do not expect “fair” to mean an even spread over a few rolls: roll a d6 a handful of times and the faces will seldom appear once each. Evenness is something that emerges over many rolls, not a promise for the next six. Third, do not confuse this tool with the Dice Probability Calculator — this page produces actual rolls, while that one works out the exact odds of a result before you roll. And if you are playing a game, take the first roll you get: quietly re-rolling until the result suits you destroys the fairness that made the roll worth trusting.
FAQ
Is the dice roller fair?
Yes for games — it uses the browser’s random generator; not for cryptography.
What dice types?
d4, d6, d8, d10, d12, d20.
Can I roll 3d6?
Yes — pick d6, enter 3.
What is the average of 3d6?
10.5 (3 × 3.5).
Where are the odds?
The Dice Probability Calculator has exact probabilities.
What does 3d6 mean?
It is the standard shorthand for dice rolls: the number before the “d” is how many dice to roll, and the number after it is how many sides each die has. So 3d6 means three six-sided dice — set the die type to d6 and the number of dice to 3, exactly as in the worked example above.
Why did the same number come up several times in a row?
Because every roll is independent and every face is equally likely each time. Streaks and clusters are a normal part of randomness; fairness only shows itself over many rolls, not in a handful.