ewory.com logo

Dice Generator

Choose the number of dice and the number of sides, and press the 'Roll Dice!' button. The generator shows the results with animation.



Dice Generator โ€“ Virtual Dice Rolling

The dice generator is a convenient tool for virtual dice rolling. It is suitable for playing board games, role-playing games, educational use, and any situation where random numbers are needed.

Supported Dice Types

The dice generator supports several different dice known from the world of tabletop gaming:

DiceSidesShapeCommon Use
d44TetrahedronSmall damage rolls in D&D
d66CubeBoard games, Yahtzee, GURPS
d88OctahedronWeapon damage in RPGs
d1010Pentagonal trapezohedronPercentile rolls, World of Darkness
d1212DodecahedronHeavy weapon damage in D&D
d2020IcosahedronD&D attack rolls, skill checks, saves
d100100Two d10s combinedPercentage results, random tables

How Are Random Numbers Generated?

The dice generator uses JavaScript's Math.random() function, which produces pseudorandom numbers. Each roll is independent, just like a real die roll. The result is evenly distributed among all possible values โ€” meaning every face has an equal probability of appearing.

For a single die with n sides, the probability of any specific result is:

P(any face) = 1 รท n

A d6 has a 1/6 (16.67%) chance of landing on any number from 1 to 6. A d20 has a 1/20 (5%) chance for each number.

Probabilities When Rolling Two d6 Dice

When rolling two six-sided dice and summing the results, not all totals are equally likely. The sum of 7 has the most possible combinations:

SumCombinationsProbability
21 (1+1)2.78%
325.56%
438.33%
5411.11%
6513.89%
76 (1+6, 2+5, 3+4, 4+3, 5+2, 6+1)16.67%
8513.89%
9411.11%
1038.33%
1125.56%
121 (6+6)2.78%

This distribution forms a bell curve โ€” results near the middle (6, 7, 8) are far more common than the extremes (2, 12). Understanding this is key to games like Settlers of Catan, where resource-producing tiles placed on 6 and 8 are more valuable than those on 2 or 12.

Use Cases

Board Games: When real dice are lost, playing remotely over video call, or when you need a neutral roller everyone trusts, virtual dice are the perfect solution. Games like Monopoly, Risk, Backgammon, and Yahtzee all use standard d6 dice.

Tabletop Role-Playing Games (D&D, Pathfinder, Call of Cthulhu): The d20 is the core die in Dungeons & Dragons 5th Edition. The dice generator supports all dice types needed for attack rolls, damage rolls, ability checks, and saving throws. A standard D&D set includes d4, d6, d8, d10, d10 (percentile), d12, and d20.

Education and Probability: Teachers use virtual dice to demonstrate probability, statistics, and expected value. Roll hundreds of times to observe the law of large numbers in action โ€” the distribution converges toward the theoretical probabilities as sample size increases.

Decision Making and Randomization: When any option is equally valid, let the dice decide. A d6 can choose between six restaurants, a d20 can pick a random student to answer a question, and a d100 can generate random percentages.

Features

  • ๐ŸŽฒ Roll 1โ€“10 dice simultaneously
  • ๐ŸŽฏ All standard RPG dice types: d4, d6, d8, d10, d12, d20, d100
  • ๐Ÿ“Š Roll history saved automatically
  • โœจ Animated dice rolling for realism
  • ๐Ÿ“ฑ Works on all devices โ€” phone, tablet, and desktop

Frequently Asked Questions

How do I roll dice online?

Use the virtual dice generator above: select the number and type of dice (d4, d6, d8, d10, d12, d20, d100) and click Roll. Each result is randomly generated with equal probability for all faces.

What is a d20 dice used for?

The d20 (20-sided die) is the core die in Dungeons & Dragons and many other tabletop RPGs. It is used for attack rolls, ability checks, and saving throws. Rolling a natural 20 is a critical hit.

Are virtual dice rolls truly random?

Virtual dice use pseudorandom number generators (like JavaScript's Math.random()), which produce statistically uniform results โ€” virtually equivalent to physical dice for gaming purposes. For cryptographic randomness, specialized APIs exist, but for games, PRNG is more than sufficient.

What is the most common result when rolling two d6 dice?

The sum of 7 is the most common result (16.67% probability) when rolling two six-sided dice, because it has the most combinations: 1+6, 2+5, 3+4, 4+3, 5+2, 6+1.

What dice do you need for D&D?

A standard D&D set includes seven dice: d4, d6, d8, two d10s (one for tens digit), d12, and d20. The virtual dice generator here supports all of these types.

Sources