Random Number Generator — Dice Roller, Coin Flip & Card Draw

    Generate truly random numbers, roll any dice combination, flip coins, or draw cards — built for tabletop games, decision-making, or just settling an argument.

    Allow duplicates

    Recent Results

    Your rolls, flips, and draws will appear here.

    Advertisement

    How this random number generator works

    Every result on this page — numbers, dice, coins, and cards — is generated using your browser's built-in cryptographically secure random number generator (the Web Crypto API), the same source used to generate passwords, encryption keys, and session tokens. That's a meaningfully stronger guarantee of fairness than the Math.random() function many online tools rely on.

    Why not Math.random()?

    Math.random() is a pseudo-random number generator: fast, but not designed to be unpredictable, and some implementations have measurable statistical biases. This tool instead uses crypto.getRandomValues() and a technique called rejection sampling — discarding any values that would skew the result — so that every number in your chosen range has an exactly equal chance of being picked, no matter how the range divides into the underlying random bytes.

    Reading dice notation (e.g. 2d6+3)

    Dice notation describes a roll as {count}d{sides}{modifier}. 2d6+3 means "roll two six-sided dice, add the results together, then add 3". 1d20 means a single twenty-sided die with no modifier. The quick-pick buttons insert a single die of the chosen size — edit the count or add a modifier afterwards as needed.

    How are the odds and probabilities calculated?

    For a single random number, the odds are simply 1 in (max − min + 1) — the size of your range. For multiple numbers drawn without duplicates, the figure shown is the number of possible ordered combinations (a permutation calculation). For coin flips, the probability of any specific sequence of heads and tails is 1 in 2 to the power of the number of coins. For card draws, the figure is based on the number of ways to choose that many cards from the deck (adjusted upward if repeats are allowed, since each draw is then independent).