Dice Roller

Set how many dice and what sides, then hit Roll β€” the dice actually tumble before landing on your result.

How Dice Roller Works

This is a virtual dice roller for board games and tabletop RPGs: choose how many dice to roll and how many sides each one has, then hit Roll to get a genuinely random result for each die, plus the total. A d6 gets a real animated 3D cube that visibly tumbles to its landed face; other die types (d4, d8, d10, d12, d20) use a quick flickering-number animation before settling.

Formula & Method

Each die's result is generated independently with 1 + Math.floor(Math.random() × sides), giving every face an equal chance of landing -- a fair, uniform random roll, the same as a physical die. For a 6-sided die, the visual result is produced by rotating a 3D cube to the rotation that shows the correct face, with a few extra random full spins added first purely for the tumbling effect; the rotation never influences which number was actually rolled -- that's decided first, then animated. The displayed total is simply the sum of all the individual die results.

Worked Example

Rolling 2 six-sided dice (2d6) might land on 4 and 5 -- each result independently anywhere from 1 to 6 with equal probability -- giving a displayed total of 9. The result panel breaks down each die individually ("Die 1 (d6)", "Die 2 (d6)") alongside the combined total.

Frequently Asked Questions

Is the roll actually random, or does the animation influence the outcome?
The number is generated first using JavaScript's random number generator, before any animation starts -- the tumbling or flickering visual is purely cosmetic and always ends on the number that was already decided. It doesn't affect fairness.
Why do d4, d8, d10, d12, and d20 look different from the d6?
The d6 gets a true 3D cube that can show all six faces with pips, since a cube is simple to model and rotate in CSS. The other die sizes use a flat display that flickers through random numbers before landing on the result, since building accurate 3D models for shapes like a d20 would be considerably more complex for the same underlying random outcome.
Can I roll different-sided dice together in one roll?
Not in a single roll -- one roll applies the same number of sides to every die in the tray. To combine different dice (like a d20 plus two d6s for a tabletop game), roll each die type separately and add the totals yourself.
How many dice can I roll at once?
Up to 10 dice in a single roll, each with the same number of sides, selectable from d4 up to d20.
Click Roll to get started