Custom Dice Beyond Standard Polyhedrals
While traditional physical sets are restricted to standard platonic solids (d4, d6, d8, d12, d20), digital dice free you from geometric limitations. With our random dice roller, you can roll dice with arbitrary numbers of sides—such as a d3 for coin-toss variants, a d7 for day-of-the-week selections, or a d1000 for massive lottery tables.
Tap the ⚙ icon in the dice selector to define any side count between 2 and 1,000.
Why Cryptographic Randomness (CSPRNG) Matters
Many online random generators use standard Math.random() paired with a naive modulo operator: Math.floor(Math.random() * sides) + 1. This approach suffers from two distinct flaws:
- Predictability: Pseudorandom generators based on linear algorithms can be predicted once a few initial seeds are observed.
- Modulo Bias: When mapping a fixed integer space onto an arbitrary range that does not divide evenly, smaller numbers receive a microscopic mathematical advantage.
diceroller.fun eliminates both problems by utilizing crypto.getRandomValues with strict rejection sampling. Discarding out-of-bounds residues ensures that every face has an exact, uniform mathematical chance.
Frequently Asked Questions
What is the maximum number of sides supported? ↓
You can configure up to 1,000 sides per die. For dice counts, you can roll up to 100 dice simultaneously in a single command.
What does rejection sampling mean? ↓
Rejection sampling is a mathematical technique where random numbers falling into an uneven remainder zone are safely discarded and redrawn. This guarantees that no single outcome has higher probability than another.