Skip to content

Generator

Random Number Generator

Cryptographically secure random numbers in any range, with draw-without-replacement for raffles and a full polyhedral dice roller for tabletop games. Nothing is sent anywhere.

Secure RNGUnique-only moded4 – d100Free

What to generate

Pick a mode

Range

1 to 100

Minimum
Maximum
How many

History

0 saved

Result

Press generate

Numbers come from crypto.getRandomValues(), the browser cryptographic random source, with modulo bias rejected so every value in the range is equally likely.

Four steps

How to generate random numbers

  1. 1

    Set the range

    Enter the minimum and maximum, any whole numbers you like.

  2. 2

    Choose how many

    Draw one number or several at once.

  3. 3

    Decide on duplicates

    Switch on unique-only for raffles and team selection; leave it off for dice-style draws.

  4. 4

    Generate

    Press generate, the numbers come from the browser cryptographic RNG.

Why the random source matters

Math.random() is a pseudorandom generator: fast, statistically decent, and fully predictable if you know its internal state. That is fine for animation jitter and unacceptable for anything where someone might care about the outcome.

crypto.getRandomValues() draws from the operating system’s entropy pool, the same source used to generate encryption keys. This tool uses it for every draw, and rejects values that would introduce modulo bias, so each number in your range is exactly as likely as every other.

With or without replacement

ModeRepeats?Use for
Unique onlyNoRaffles, team picking, lottery-style draws
IndependentYesDice, simulations, sampling with replacement

Picking the wrong one is the most common mistake. A raffle drawn with replacement can select the same ticket twice; dice rolled without replacement are not dice.

Running a fair draw

  1. State the range and the number of winners before drawing.
  2. Map entrants to numbers in a fixed, published order.
  3. Draw once, with unique-only switched on.
  4. Screenshot or record the result immediately.
  5. Do not redraw. A redraw is a second draw, and it invalidates the first.

Dice notation

Tabletop games write dice as NdX: N dice with X sides. So 3d6 is three six-sided dice, giving 3–18 with results clustering around 10–11. 1d20 is the flat 1–20 roll that underpins D&D, flat because a single die gives every value equal probability, unlike a sum of several.

Related tools

The password generator uses the same secure source for passwords and passphrases. For printable randomness, the bingo card generator shuffles cards independently and sudoku uses seeded generation so a puzzle can be reproduced exactly.

Answers

Frequently asked questions

It uses crypto.getRandomValues(), the browser’s cryptographically secure random source, the same one used for TLS key material, rather than Math.random(), which is fast but predictable and unsuitable for anything where fairness matters.

It draws without replacement, so no number repeats, exactly what you want for a raffle, picking teams, or selecting five winners from a hundred entrants. With it off, each draw is independent and duplicates are possible, which is correct for dice and simulations.

The randomness is sound. For a draw with real stakes, the weak point is process rather than maths: announce the range and rules beforehand, draw once, and record the result publicly. Redrawing “because it picked the same person” quietly destroys the fairness you were relying on.

The standard polyhedral set, d4, d6, d8, d10, d12, d20 and d100, with multiple dice at once and the total shown. Enough for D&D, Pathfinder and most board games.

Because that is what randomness looks like. In ten draws from 1–10 you would expect a repeat more often than not, and streaks are normal. Perceived “clumping” is a known cognitive bias, genuinely random sequences look less even than people expect.

No. Numbers are generated in your browser and nothing is transmitted or logged.

Need a different sheet?

Everything on this site is free, runs in your browser and exports print-ready PDF. Browse the full index and take what you need.