Dice Roller
Roll virtual dice — d4, d6, d8, d10, d12, d20 — with animated rolls and totals.
How to Use
- Select the die type: d4, d6, d8, d10, d12, or d20.
- Choose how many dice to roll (1–10).
- Click Roll — see each die result and the total.
- Click Roll again to re-roll with the same settings.
When to Use This
- Running a tabletop session when the dice bag is at home, since d4 through d20 covers the standard polyhedral set most role-playing systems call for.
- Settling turn order at a board game night by having each player roll the same die type and comparing the numbers.
- Demonstrating in a statistics lesson how the sum of several dice bunches toward the middle, by rolling ten d6 repeatedly and watching the total.
- Playing a game that needs the same handful rolled over and over, because the die type and count stay set between rolls.
Frequently Asked Questions
About This Tool
Five of the six dice here are Platonic solids. The tetrahedron, cube, octahedron, dodecahedron and icosahedron are the only convex shapes whose faces are all identical regular polygons, and that interchangeability of faces is exactly what makes a die fair. The d10 is the exception: it is a pentagonal trapezohedron built from ten identical kite-shaped faces, fair for the same reason but not a regular solid, because no regular solid with ten faces exists.
Every die is rolled on its own with Math.floor(Math.random() * sides) + 1, which returns an integer from 1 up to the face count. Choose a type from d4 to d20, set one to ten dice on the slider, and the faces reveal in sequence about sixty milliseconds apart. A total appears whenever more than one die is rolled, and the last five rolls are logged below in the form 2d6 followed by the individual values.
Notes & Limits
- Rolls come from Math.random(), a pseudo-random generator that is uniform in distribution but reproducible from its internal state, so treat the numbers as entertainment only.
- Only one die type per roll, so a 2d6 plus 1d8 attack takes two separate rolls added by hand, and there is no modifier field for something like d20+5.
- The log holds the last five rolls and lives in page memory, so a reload starts it empty and there is no way to save or export a session.
- The slider stops at ten dice, which is short of the large handfuls that dice-pool systems such as Shadowrun or World of Darkness sometimes require.