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 role-playing games:
| Dice | Sides | Use |
|---|---|---|
| d4 | 4 | Tetrahedron, role-playing games |
| d6 | 6 | Standard die, board games |
| d8 | 8 | Octahedron, role-playing games |
| d10 | 10 | Percentile die, role-playing games |
| d12 | 12 | Dodecahedron, role-playing games |
| d20 | 20 | Icosahedron, D&D and other role-playing games |
| d100 | 100 | Percentage results |
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.
Probabilities in rolling two d6 dice
The probabilities of the sum of two six-sided dice:
| Sum | Combinations | Probability |
|---|---|---|
| 2 | 1 | 2.78 % |
| 3 | 2 | 5.56 % |
| 4 | 3 | 8.33 % |
| 5 | 4 | 11.11 % |
| 6 | 5 | 13.89 % |
| 7 | 6 | 16.67 % |
| 8 | 5 | 13.89 % |
| 9 | 4 | 11.11 % |
| 10 | 3 | 8.33 % |
| 11 | 2 | 5.56 % |
| 12 | 1 | 2.78 % |
The sum of 7 is the most probable result (16.67 %).
Use Cases
Board Games: When real dice are lost or playing remotely, virtual dice replace physical dice.
Role-Playing Games (D&D, Pathfinder): The d20 die is the core of role-playing games. The dice generator supports all necessary dice types for attack, skill, and saving throws.
Education: Illustrating probability calculation – roll hundreds of times and observe the distribution of results.
Decision Making: When any option is equally good, let the dice decide!
Features
- 🎲 Selectable 1–10 dice at a time
- 🎯 Supported dice types: d4, d6, d8, d10, d12, d20, d100
- 📊 Roll history is saved automatically
- ✨ Animated dice rolling adds atmosphere
- 📱 Works on all devices
Sources: