RPG Dice Roller
Tabletop RPGs need fair dice, including advantage and disadvantage on a d20. This roller uses the browser CSPRNG so the result is not a linear-congruential toy. It is for games and teaching probability, not for drawing cryptographic keys. Use the password or key tools for secrets.
What the dice roller is for
Software dice usually rely on Math.random(), which is fast but predictable and, in principle, reconstructable from earlier results. For a board game that hardly matters; for anything where fairness is contested, it does.
This roller draws from the browser's cryptographic generator, so results are genuinely unpredictable.
Common uses
- Playing tabletop games when physical dice are not to hand
- Rolling for a giveaway or prize draw where fairness matters
- Generating random numbers within a fixed range
- Teaching probability with genuinely random samples
What the output means in the real world
Each roll is an integer in the die's range, with a total when you asked for a pool. Read it aloud at the table or paste the log into a virtual-tabletop chat. If you need an audit (prize draw), screenshot the full expression and the seedless CSPRNG note; this is still not a regulated lottery system.
How this fits into real work
Physical dice can be biased; phones are convenient. For a home game the CSPRNG is more than fair. For a cash prize, use a published random-draw procedure your jurisdiction accepts.
Advantage (roll twice, keep high) and disadvantage are fifth-edition D&D terms. Other systems want exploding dice or keep-N. Check your rulebook before you argue with the total.
Do not generate a 'random password' by rolling 3d6. The search space is tiny. That confusion is why this site keeps dice and passwords on different pages.
How to use this tool
- Choose how many dice and how many sides each has.
- Roll, then read the individual results and their total.
- Roll again as often as you need — each roll is independent of the last.
Tips
- Each roll is independent: a run of sixes does not make the next six less likely.
- For a fair prize draw, agree the method before rolling and record the result.
Privacy & how it works
Everything happens inside your browser. The values you type are held in page memory only, are never sent to a server, and disappear when you close the tab. You can confirm this in your browser's network tab: the only request a tool makes is one that names the tool for a usage count, with nothing you typed in it. The tools also work with the internet disconnected. Randomness comes from crypto.getRandomValues(), the browser's cryptographically secure generator, not Math.random(). Math.random() is seeded predictably and must never be used for anything security-related, because an attacker who learns part of the sequence can reconstruct the rest.
Frequently asked questions
- Are these dice actually fair?
- Yes. Values come from crypto.getRandomValues() with rejection sampling to avoid modulo bias, so every face is equally likely.
- What is modulo bias?
- Naively taking a remainder makes low values slightly more likely when the range does not divide evenly into the random space. Correct implementations discard and redraw those edge cases.
Browse other tools
All tools run entirely in your browser — nothing you type is sent to a server, except the optional HIBP 5-character hash prefix.