Skip to content
Tooletto

Dice Roller

Roll any number of dice with any number of sides, from a standard d6 up to a d20 for tabletop games. Every roll uses cryptographically secure randomness rather than Math.random, and shows the sum and each individual die.

  • Files never leave your device
  • Free, no signup
  • No watermarks
  • Works offline once loaded
Loading tool…

How to dice roller

  1. 1

    Choose the die

    Pick how many sides — d4, d6, d8, d10, d12, d20 or d100.

  2. 2

    Choose how many

    Roll a single die or several at once.

  3. 3

    Roll

    See each individual result and the running total.

Why dice rolls need real cryptographic randomness, not Math.random

JavaScript's built-in `Math.random` is a pseudo-random generator tuned for speed and statistical spread in things like animations or shuffling a UI list, not for resisting an attacker who wants to predict or reconstruct its output, and in some engines its internal state can be partially inferred from a handful of observed values. `crypto.getRandomValues`, the API this tool uses instead, draws from the operating system's cryptographic random source — the same one used to generate encryption keys — which is built and audited specifically to resist that kind of prediction. For a casual dice roll the practical difference rarely matters, but for anything used to settle a real stake — a bet, a competitive game, a decision with consequences — a properly unbiased and unpredictable source is the honest baseline rather than an unnecessary upgrade.

Why rejection sampling, not a simple modulo, decides each face

Converting a random integer into "one of N faces" by taking its remainder when divided by N introduces a subtle bias unless N evenly divides the range the random number was drawn from — a d20 in particular does not evenly divide the roughly 4.29 billion values a 32-bit random integer can take, so a naive modulo would make some faces come up very slightly more often than others. This tool instead draws a random value and, if that value would fall into the small unevenly-distributed remainder, discards it and draws again, repeating until a value lands in the evenly divisible portion of the range — the same rejection-sampling approach used by the decision wheel and coin flip on this site, so every face of every supported die is exactly, not just approximately, equally likely.

Reading tabletop dice notation

Tabletop games describe a roll in a compact shorthand — "2d6" means roll two six-sided dice and add their results together, "1d20+5" means roll one twenty-sided die and add a flat 5 afterward, and the die name itself (d4, d6, d8, d10, d12, d20, d100) refers to its number of faces. Different dice serve different purposes by design: a d20 is standard for resolving actions with a wide range of possible outcomes in games like Dungeons & Dragons, a d6 is common for damage rolls and simple probability questions, and a d100 (or two d10s read as tens and ones) is used when a game wants a roll expressed directly as a percentage. Rolling several dice of the same kind and reading the sum, which this tool supports by setting the count above one, is how nearly every tabletop damage roll and skill check is actually resolved at the table.

Why physical dice are not always as fair as they look

A die is only genuinely fair if its center of mass sits exactly at its geometric center and every face has an identical chance of settling upward, and inexpensive mass-produced dice frequently fall short of that in small but measurable ways — pips drilled into the plastic remove more material from high-numbered faces than low ones unless the manufacturer compensates for it, mold seams and rounded corners are rarely perfectly symmetric, and repeated use wears certain edges down unevenly. This is exactly why competitive tabletop players and casinos sometimes use dice that are laser-etched rather than drilled, precision-tumbled to remove seams, and individually weight-tested — a level of manufacturing scrutiny that is expensive specifically because true fairness in a physical object is harder to achieve than it looks. A cryptographically random digital roll sidesteps the entire manufacturing question, since there is no physical shape whose mass distribution could ever be uneven.

Frequently asked questions

Is this actually random?

Yes. Every die uses `crypto.getRandomValues` with rejection sampling, so no face on a die is even fractionally more likely than another — a proper fairness guarantee rather than the small bias a naive random-number-modulo approach would introduce.

Why does a d20 roll matter for tabletop games?

Games like Dungeons & Dragons resolve most actions by rolling a twenty-sided die and comparing the result against a target number, so a fair d20 is central to the game working as designed — a die biased toward high or low rolls would silently make characters better or worse than the rules intend.

Can I roll multiple dice and get the total?

Yes — set the count above one and the tool shows every individual result plus the sum, which is how tabletop notation like "2d6" (roll two six-sided dice and add them) or "3d6+2" works.

Are physical dice actually fair?

Not always. Inexpensive dice can have measurable manufacturing asymmetries — rounded edges, off-center pips drilled into the material, or uneven mold seams — that bias certain faces to land slightly more often, which is why serious tabletop and casino players sometimes pay for precision-machined "casino-grade" dice. A cryptographically random virtual roll has no physical shape to be asymmetric in the first place.

Common dice roller tasks