Dice Roller
Roll N dice with M sides (d4 / d6 / d20 / custom) - cryptographically random, in your browser.
Roll any combination of dice: pick a preset (d4 / d6 / d20 / etc.) or set a custom number of sides. Each result is shown alongside the total and an optional modifier. Every roll is cryptographically random - unbiased and unpredictable.
How to use it
Pick the dice
Number of dice + sides per die. Use a preset or type a custom side count.
Add a modifier (optional)
Constant added to the sum, like +2 in '3d6+2'.
Roll
Hit the Roll button. The individual rolls, sum and total appear; history below tracks the last 10 rolls.
What is it?
A dice roller is a software replacement for physical dice that needs to feel as fair as the real thing. The hard part isn't the rolling - it's the randomness source. Math.random is biased on older browsers and has known patterns; crypto.getRandomValues doesn't, so it's the right pick for any roll that has stakes.
When to use it
Tabletop role-playing games when the actual dice are upstairs or missing. Quick decisions ('pick a movie from this shortlist of 6'). Classroom probability demonstrations. Generating sequences for music composition or art. Stress-testing a random-related code path.
Common mistakes
Confusing 'd6' with 'random number 1-6 inclusive' - that's exactly what d6 is, but some online dice tools quietly return 0-5 or 1-7 because of off-by-one bugs. Adding the modifier to each die separately when the rules say add it to the sum. And ignoring the roll history - useful for verifying that a long session was actually random and not a single long run of bad luck.
FAQ
- Is it really random?
- Yes - we use crypto.getRandomValues, the browser's cryptographically-secure PRNG. The same source that backs TLS key generation. No bias, no patterns.
- Can I roll '4d6+2'?
- Yes. Set count = 4, sides = 6, modifier = +2. The result line shows the four individual rolls, the sum, and the total with modifier applied.
Rate this tool
Share your experience to help others.