Virtual Dice Roller
Press Generate to see a result.
Non-Conventional Dice Roller
Roll dice with any number of sides, such as the d4, d8, d10, d12 and d20 used in tabletop role-playing games.
Press Generate to see a result.
Choose how many dice to throw and press Generate. The dice roller uses your browser's cryptographic random number generator, so every face is equally likely; the second tool rolls dice with any number of sides.
Dice are among the oldest gaming tools known; six-sided dice with pips have been found at sites in the Indus Valley and Mesopotamia dating back roughly 5,000 years, and earlier peoples cast knucklebones in the same way. On a standard die the opposite faces add up to seven, so 1 is opposite 6, 2 opposite 5 and 3 opposite 4.
A virtual roller gives the same result as a well-made physical die without the risk of dice rolling off the table. Each die here is generated independently, with every face exactly equally likely.
Dice shapes
A fair die has faces that are all equivalent, so each is equally likely to land on top. The five Platonic solids, with 4, 6, 8, 12 and 20 identical faces, make natural fair dice, and together with the ten-sided pentagonal trapezohedron they form the standard set used in games such as Dungeons & Dragons, written d4, d6, d8, d10, d12 and d20. A d4 is read from the point at the top or the edge at the bottom, since no face lands upward. Other fair shapes exist, including two-sided coins, long rolling dice and dice built from other face-transitive solids with 24, 30 or more faces.
How random is a dice?
A physical die is random because its outcome is extremely sensitive to tiny differences in how it is thrown, how it bounces and the surface it lands on, even though the motion obeys deterministic physics. Studies of die rolling suggest that a die needs to bounce and tumble several times before the result becomes effectively unpredictable; a gently rolled die can be biased toward the face that started on top.
Real dice are also not perfectly fair. Drilled pips remove more material from the 6 face than the 1, so on cheap dice with deep pips the 6 is slightly lighter and lands up a little more often, while rounded corners and molding flaws introduce other small biases. Casino dice are machined to tight tolerances with flush, filled pips, transparent material that reveals hidden weights, and sharp edges, and are replaced frequently.
This roller uses crypto.getRandomValues, a cryptographically secure random number generator built into browsers, and maps its output to faces without the slight bias that the naive remainder method introduces. With two dice, the totals are not equally likely: there are six ways to roll a 7 but only one way to roll a 2 or a 12, as the table shows.
| Total of two dice | Ways to roll | Probability |
|---|---|---|
| 2 | 1 | 1/36 = 2.78% |
| 3 | 2 | 2/36 = 5.56% |
| 4 | 3 | 3/36 = 8.33% |
| 5 | 4 | 4/36 = 11.11% |
| 6 | 5 | 5/36 = 13.89% |
| 7 | 6 | 6/36 = 16.67% |
| 8 | 5 | 5/36 = 13.89% |
| 9 | 4 | 4/36 = 11.11% |
| 10 | 3 | 3/36 = 8.33% |
| 11 | 2 | 2/36 = 5.56% |
| 12 | 1 | 1/36 = 2.78% |
Frequently asked questions
Is this dice roller truly random?
It uses the browser's cryptographically secure random number generator with unbiased mapping, so each face has exactly the same chance and rolls are independent.
What is the most common total with two dice?
7, with probability 6/36, or about 16.7%.
What do d6 and d20 mean?
A die with that many sides. 3d6 means rolling three six-sided dice and adding them.
What is the average roll of a six-sided die?
3.5, the average of 1 through 6. For n dice the expected total is 3.5 × n.
Updated by Calculator.hair. How we build and check our calculators