Dice Roller
Set Number of dice and pick Sides: D6, D4, D8, D10, D12, or D20, then click Roll Dice. Each face is shown. More than one die also shows a total. Rolls use Math.random.
How to use
- Set Number of dice. The box starts at 1. A value under 1 becomes 1 and a value over 10 becomes 10 before the roll.
- Open Sides. The menu lists D6, D4, D8, D10, D12, and D20, in that order. D6 is selected when you arrive.
- Click Roll Dice. Each die appears as its own number from 1 through the side count you picked.
- When the count is greater than one, a Total line adds those faces. A single die shows the face and leaves the total line empty.
When it helps
Board games, tabletop checks, and classroom math where everyone should see the faces. A D20 covers a typical role-playing roll, and several D6 cover a pool you would rather not add by hand. Ten is the most you can throw in one click.
A two-way call with no faces fits the coin flip, which lands on heads or tails. A plain integer span that is not a die fits the random number generator, where you type a minimum, a maximum, and how many numbers you want.
Limits
Each face comes from Math.random. That is fine for a game at the table. It is not a prize draw that has to be audited. The page does not log past rolls, so the next click replaces the faces and there is no receipt or seed to show later.
You cannot type a custom side count outside those six menu entries, and you cannot roll more than ten dice at once. There is no modifier, no exploding die, and no advantage rule. The total appears only for two or more dice.
Questions
Why is the total missing?
The Total line is written only when Number of dice is greater than one. One die is just the face you rolled.
Can I use this for a raffle that needs a record?
No. Math.random is enough for play. It does not give you an audit trail, a stored roll, or a way to replay the same draw.
What if I type 0 or 40 dice?
The count is clamped from 1 to 10. Zero becomes one die and 40 becomes ten dice. The side menu does not change when that happens.