Dice roller
Roll any combination of standard polyhedral dice — d4, d6, d8, d10, d12, d20 and d100 — with an optional modifier for skill checks, attack rolls and board games. It is a fast stand-in for physical dice for tabletop RPGs like Dungeons & Dragons.
How it works
Pick the die type, how many to roll (1 to 100) and an optional modifier. Each die is rolled using the browser’s Web Crypto API (crypto.getRandomValues), a cryptographically secure source. To keep every face equally likely, the roller uses rejection sampling: it discards any raw random value that would introduce modulo bias and re-draws, so a d20 gives each of 1-20 exactly the same chance. The individual rolls are summed, then the modifier is added (or subtracted) to give the total.
Example
Rolling 2d6+3 (two six-sided dice plus 3):
rolls 4 and 5 → 4 + 5 = 9, + 3 modifier = 12 total
| Notation | Meaning | Range |
|---|---|---|
| 1d20 | one twenty-sided die | 1–20 |
| 2d6+3 | two d6 plus 3 | 5–15 |
| 4d4 | four four-sided dice | 4–16 |
| 1d100 | percentile die | 1–100 |
You see each individual result plus the combined total. Everything runs in your browser — nothing is uploaded.