Skip to content
CalcSpectrum

Dice Roller

Roll any number of standard dice (d4, d6, d8, d10, d12, d20, d100) with a cryptographically secure random roll.

Free to use · Instant results
Loading calculator…

How It's Calculated

Formula

\text{roll}_i \sim \text{Uniform}\{1, \dots, \text{sides}\}

This dice roller draws each die independently and uniformly from 1 to the die's number of sides, using the browser's cryptographically secure random number generator (Web Crypto's crypto.getRandomValues) with unbiased rejection sampling — never Math.random. Click "Roll Dice" to roll; changing the number of dice or the die type afterward does not reroll the displayed result until you click again.

Worked Examples

Roll 3d6

  1. Set number of dice to 3 and die type to d6.
  2. Click Roll Dice.
  3. Each of the 3 dice is drawn independently and uniformly from 1-6, e.g. 2, 5, 4.
  4. Total = 2 + 5 + 4 = 11.

Frequently Asked Questions

Which die types are supported?

d4, d6, d8, d10, d12, d20, and d100.

Does changing the number of dice reroll my results?

No. Results only change when you click "Roll Dice." Changing the number of dice or die type afterward does not affect the currently displayed roll until you click the button again.

Is this randomness fair?

Yes. Each roll is drawn using a cryptographically secure random number generator with rejection sampling, which eliminates the small bias a naive modulo operation would introduce — every face has exactly equal probability.