Dice Roller

ENTERTAINMENT · WEB CRYPTO POLYHEDRAL DICE

Choose dice & roll locally

Web Crypto RNG on this device
Whole integer from 1 to 100.
dice
Optional flat integer modifier between minus 1000 and 1000.

READY TO ROLL

—

Click Roll Dice to generate a fair roll.

HOW IT WORKS

Unbiased Web Crypto Dice Sampling

Every roll is generated directly in your browser using the crypto.getRandomValues cryptographic random number generator rather than naive Math.random().

01

Rejection Sampling (Zero Modulo Bias)

When sampling a die with S sides from a 32-bit unsigned integer, values above the largest multiple of S are discarded and re-sampled so every face has an exact 1/S probability.

02

Standard & Custom Polyhedral Dice

Roll 1 to 100 dice at once using standard tabletop presets (d4, d6, d8, d10, d12, d20, d100) or any custom die from 2 to 1,000 sides.

03

Modifiers & Expected Mean

Add or subtract any flat integer modifier (e.g., 2d6 + 3) and view theoretical minimum, maximum, and expected average alongside your roll history.

RANDOMNESS & TABLETOP GUIDE

Why cryptographic rejection sampling matters for fair dice

Eliminating modulo bias in digital dice

A naive rand % 6 on a 32-bit integer slightly favors faces 1 through 4 because 2³² is not divisible by 6. By rejecting values at or above floor(2³² / sides) × sides, each face of a d6, d20, or d100 has an exact uniform probability. Looking for more lighthearted browser tools? Try the Love Calculator.

Frequently asked questions

Is this dice roller truly fair?

Yes. It uses the browser's hardware-seeded crypto.getRandomValues API with rejection sampling so every face has an identical probability.

Can I roll custom dice like a d3 or d37?

Yes. Click Custom in the die selector and enter any integer from 2 to 1,000 sides.

How do I add a +5 or −2 modifier?

Enter any integer between −1000 and +1000 in the Modifier field and click Roll Dice.

Are my rolls sent to a server?

No. All random numbers and roll history stay 100% in your browser.

Dice rolls are generated locally in your browser via Web Crypto and are never sent to a server.