Esc

Random Number Generator

Generate random numbers in any range. One or a thousand, with or without repeats.

42

Press Space to generate again

Keyboard shortcuts

Space Enter
Spin, flip, roll or pick
F
Fullscreen
M
Mute or unmute
R
Reset the tool
/ Ctrl K
Search tools
?
Show this list

This random number generator picks whole numbers between a minimum and maximum you set, from 1–10 up to a range of a trillion. Generate one number or up to 1,000 at once, choose whether repeats are allowed, and sort the results if you like.

Numbers come from your browser’s cryptographic random generator with rejection sampling, so every number in the range has exactly the same chance. Unlike many simple generators, there is no modulo bias toward low numbers.

How to use the random number generator

  1. 1

    Set the range

    Enter the minimum and maximum. Negative numbers work too.

  2. 2

    Choose how many

    Generate one number or a list. Turn on No duplicates for lottery-style draws.

  3. 3

    Generate

    Press Generate or the space bar. Copy or export the results.

Common ranges

A few ranges people use every day:

  • 1 to 10: guessing games and quick choices
  • 1 to 100: percentages and classroom games
  • 1 to 6: a single die (or use the dice roller)
  • Ticket numbers: the first and last ticket in a raffle
  • Six from 1 to 49, no duplicates: lottery-style picks for fun

What “no duplicates” does

With No duplicates on, each number can appear only once in a batch, like drawing numbered balls without putting them back. If you ask for more numbers than the range holds, you get every number in the range, in random order. Turn it off to allow repeats, like rolling a die many times.

True random or pseudo-random?

Strictly, a computer generator is “cryptographically secure pseudo-random”: it is seeded from unpredictable hardware events and designed so the output cannot be predicted, even by someone who has seen earlier numbers. For games, draws, sampling, and teaching, it is indistinguishable from true randomness. For lotteries run for money, use the official draw process required by law.

Random Number Generator questions

What is the largest range?

A range up to one trillion numbers wide, between −9 quadrillion and +9 quadrillion.

Can I generate decimals?

This tool generates whole numbers. For a decimal, generate a whole number and divide, for example 1–1000 divided by 10.

Can I pick lottery numbers?

You can generate numbers for fun. It cannot improve your odds: every combination is equally likely.

Is it fair?

Yes. Press Run 10,000 in Options to see each number’s share compared with the expected share.

Settings

Sound
Sound pack
Motion
Your data

Everything you type stays in this browser. Nothing is sent to a server.