Toolphy

Dice Roller

Roll any number of D4–D20 or custom dice instantly and get each face value plus the total, with a heads-or-tails coin mode.

Roll Results

No roll yet — press the button to roll the dice.

How to Use the Dice Roller

A dice roller replaces physical dice with a fair, instant random generator you can use anywhere.

  1. Choose the Dice mode and set how many dice you want to roll, from a single D6 up to 100 dice at once.

  2. Pick the number of sides — D4, D6, D8, D10, D12 or D20 — or select Custom to type any side count you need.

  3. Press Roll Dice. Every die is generated with crypto.getRandomValues, so the outcome is unpredictable and unbiased.

  4. Read each individual result and the automatic total, then copy the whole roll to your clipboard with one click. Switch to Coin mode to flip heads or tails instead.

What Is a Dice Roller?

A dice roller is a digital tool that simulates rolling one or more dice. Instead of throwing physical polyhedrons, it draws random numbers from your browser's cryptographic generator and maps them onto the faces of the dice you selected. The result is a roll that is both fair and repeatable on demand — you never lose a die under the sofa, and you can roll twenty D6 at once during a board game. The tool supports the shapes used by most tabletop games: D4, D6, D8, D10, D12, D20 and a custom-sided option for exotic dice. Because every die is independent, rolling three D6 produces three separate values, each between 1 and 6, and the total shown is simply their sum. The random source matters. This roller uses crypto.getRandomValues instead of Math.random, which is designed for statistical quality and avoids the subtle modulo bias that plagues naive implementations. A coin-flip mode is included for quick yes-or-no decisions, giving heads or tails with the same cryptographic fairness.

Common Applications

1. Tabletop role-playing games such as Dungeons & Dragons, Pathfinder or Call of Cthulhu, where you constantly roll D20 checks, D8 damage and D4 healing.

2. Board games and party games that need dice but whose physical pieces have gone missing.

3. Teaching probability and statistics: roll a D6 a hundred times and compare the observed distribution with the theoretical one.

4. Deciding who goes first, settling a friendly bet, or making a fair random choice when no coin is at hand.

5. Game design and prototyping, where designers need fast, repeatable random draws to test balance and loot tables.

Why Crypto Randomness Matters

Many online dice generators rely on Math.random(), a fast pseudorandom function that is fine for animations but not ideal for games where fairness is visible. Math.random() also introduces a small bias when it is scaled to a range that does not divide evenly into its internal resolution.

This roller builds every die from crypto.getRandomValues, the browser's cryptographically secure random number generator. It uses rejection sampling so that each face has exactly the same probability, whether you roll a four-sided die or a custom thousand-sided die. That makes it suitable for anything from casual play to probability demonstrations.

Frequently Asked Questions - FAQ

Is this dice roller actually fair?

Yes. Each die is generated with crypto.getRandomValues and rejection sampling, so every face has an equal probability. There is no weighting and no hidden bias toward any result.

Can I roll more than one die at once?

You can roll between 1 and 100 dice in a single click. Each die is independent, and the tool shows every individual value together with the running total.

Which dice types are supported?

The standard D4, D6, D8, D10, D12 and D20 are built in. Choose Custom sides to enter any face count from 2 to 1000 for unusual dice.

Can I flip a coin instead of rolling dice?

Yes. Switch to Coin mode, choose how many coins to flip, and the tool returns heads or tails for each one with automatic totals for both outcomes.

Does it save or send my rolls anywhere?

No. Everything runs locally in your browser using native JavaScript. No roll, setting or result is ever uploaded or stored on a server.

Last updated: