Dice Roller

Roll 1-6 dice online — d4 or d6 — with a fair shuffle animation.

Total

0

Number of Dice

16

Dice Type

How this dice roller works

Each roll uses your browser's cryptographically secure random number generator, so every face has an equal, unbiased chance of landing — the same fairness guarantee used for security-sensitive randomness, not a predictable pseudo-random sequence. The tumble you see is a real 3D cube rotating in CSS, not a swapped image, and it always settles on the face that matches the result.

Click the dice themselves or the Roll Dice button to shuffle. Switch between the standard six-sided d6 and the four-sided d4, and adjust the count to roll anywhere from one die up to six at once.

Why the total isn't evenly distributed with multiple dice

A single die gives every value an equal 1-in-n chance, but the total of two or more dice doesn't work the same way. Rolling two six-sided dice, there's only one combination that adds up to 2 (1+1) and only one that adds up to 12 (6+6), but six different combinations add up to 7 (1+6, 2+5, 3+4, 4+3, 5+2, 6+1) — so 7 comes up six times more often than 2 or 12 over many rolls. This is simple probability, not a flaw in the randomness; it's the same reason 7 is the most commonly rolled total in games like Craps.

Why the d4 shows a number instead of pips

A six-sided die always lands with one face pointing straight up at the viewer, which is why the d6 here rotates as a real cube with a pip layout on each face. A four-sided die is a tetrahedron — it lands with a point up and a face down, so there's no single "top" face to display pips on the way real physical d4s print numbers along each edge instead. Showing the rolled number directly keeps the on-screen d4 readable without trying to fake a physically accurate tumble.

Frequently Asked Questions

Is this dice roller actually random and fair?

Yes — it uses your browser's cryptographically secure random number generator (crypto.getRandomValues) rather than a predictable pseudo-random function, so every face has an equal, unbiased chance of landing.

What dice types are supported?

Standard six-sided (d6) dice with real pip faces, and four-sided (d4) dice — roll 1 to 6 dice at once and see a running total.

Why does the dice animation show a real 3D cube?

The d6 is rendered as an actual rotating 3D cube using CSS 3D transforms, not a swapped 2D image — it tumbles through real rotation and lands precisely on the face that matches the random result.

Why isn't the total evenly spread out when I roll multiple dice?

Individual dice are equally likely on every face, but totals aren't — with two six-sided dice, only one combination makes 2 (1+1) while six combinations make 7, so 7 comes up far more often than 2 or 12 over many rolls. That's ordinary probability, not a bias in the randomness.

Why does the d4 show a number instead of pips like the d6?

A four-sided die is a tetrahedron that lands point-up with no single face pointing at the viewer, unlike a cube — so there's no natural top face to draw pips on. Showing the rolled number directly is clearer than trying to fake a physically accurate tumble.