Dice Roller

Roll dice using the notation you already write: 3d6+2, d20, 4d8-1. Advantage and disadvantage roll the whole expression twice and keep the higher or lower total, the way the mechanic actually works. Each die is drawn by rejection sampling from the browser's cryptographic generator rather than by taking a random number modulo the faces — the modulo is subtly biased toward low numbers, by an amount far too small to notice across an evening of play, which is precisely why so many rollers still do it. Individual dice are shown as well as the total, because you want to see the natural twenty and because a roller showing only a sum cannot be checked.

Notation

You typeYou get
d20One twenty-sided die
3d6Three six-sided dice, summed
2d10+5Two ten-sided dice plus five
4d8-2Four eight-sided dice minus two
AdvantageThe whole expression twice, higher kept

When to use it

  1. Roll for a tabletop game without physical dice.
  2. Roll with advantage or disadvantage.
  3. Roll a large handful at once — 8d6 for a fireball.
  4. Settle something with a d100.
  5. Roll when your dice are in another room.

How to Use

  1. Type the notation, or pick a common die.
  2. Roll — the individual dice and the total are both shown.
  3. Use advantage or disadvantage where the game calls for it.

Features

  1. Standard NdM+X notation
  2. A bare d20 means one die
  3. Advantage and disadvantage on the whole expression
  4. Individual dice shown with the total
  5. Unbiased cryptographic randomness
  6. Any die from d2 to d1000
  7. Roll history for the session
  8. Nothing transmitted

FAQs

Is it actually fair?

Yes, and deliberately so. Dice come from crypto.getRandomValues by rejection sampling, which discards the values that would skew the result. The common shortcut — a random number modulo the face count — favours low numbers slightly whenever the range does not divide evenly. The bias is tiny, which is why it goes unnoticed and unfixed.

What notation does it understand?

The standard kind: NdM with an optional modifier, so 3d6, 2d10+5, 4d8-2. A bare d20 means one die, because that is how people write it. Case and spaces are ignored.

How do advantage and disadvantage work?

The whole expression is rolled twice and the higher or lower total is kept. Note it rolls the expression, not just the die — rolling one die twice and adding the modifier afterwards gives a different distribution, and is a shortcut some rollers take.

Why show the individual dice?

Because the total hides what you need. A natural twenty matters regardless of modifiers, a set of 8d6 is worth seeing, and a roller that only shows a sum cannot be sanity-checked against anything.

Can I roll a d100?

Yes, and any face count up to 1000. Percentile rolls, d3, d7 for something unusual — the notation does not care whether the die physically exists.

Are my rolls recorded?

Only in the page, and only until you leave it. Nothing is transmitted and no history is stored anywhere.

Technical Details

Each die is drawn from the browser's cryptographic generator by rejection sampling rather than by taking a random number modulo the number of faces. The modulo is the obvious version and it is biased whenever the range does not divide evenly into the generator's output — on a twenty-sided die the low faces come up very slightly more often than the high ones. The effect is far too small to notice across an evening of play, which is exactly why it persists in so many rollers: nothing ever looks wrong. Rejection sampling discards the values that would skew the result and costs a loop, and since the alternative is a die that is provably not fair, that is the right trade. Notation parsing accepts what people actually type. A bare `d20` means one die, because nobody writes `1d20`, and requiring the leading digit rejects the single most common input there is. Case and spacing are ignored, modifiers may be positive or negative, and the count and face count are both bounded so a typed `99999d999999` cannot allocate its way to a frozen tab. Advantage and disadvantage roll the whole expression twice and keep the higher or lower total, which is how the mechanic works in the games that use it — rolling one die twice and applying the modifier afterwards gives a different distribution and is a common shortcut. Individual dice are shown alongside the total, because a player wants to see the natural twenty rather than a number that includes their proficiency bonus, and because a roller that shows only a sum is impossible to check. Nothing is transmitted and no roll is logged anywhere.

Random & Fun Tools

Random & Fun Tools

  • Coin Flip
  • Random Group Generator
  • Random Picker
  • Random Picker Wheel
  • Pictionary Word Generator
  • 2048 Game