Dice Roller
Roll any number of dice with any number of sides. Supports the classic d4, d6, d8, d10, d12, d20, d100, plus custom-sided dice. Uses cryptographically secure randomness.
Inputs
Common values: 4, 6, 8, 10, 12, 20, 100.
Total
โ
Individual rolls
โ
Sum of dice (before modifier)
โ
Possible range
โ
Expected average
โ
About Dice Roller
How fair are the rolls?
Each die uses the browserโs crypto.getRandomValues, the same source as for cryptographic keys. Far more random than Math.random.
Notation
In tabletop gaming, "2d6+3" means roll two six-sided dice and add 3 to the total. Set count=2, sides=6, modifier=3.
Modulo bias
For small sides (< 1000), the bias from random % sides is negligible โ about 1 in 4 billion deviation from uniform on a 32-bit random. Cryptographers would prefer rejection sampling; for game use this is more than fair.