Random Number Generator

Set the lowest and highest number and press Generate.

Loading tool…

  • Free
  • No sign-up
  • Runs in your browser

How to use the random number generator

  1. Type the range in From and To. Both ends are included.
  2. Set How many numbers you need.
  3. Tick No repeats for a draw in which each number can come up only once.
  4. Press Generate.

Popular ranges

NeedFromToHow many
Pick a number between 1 and 101101
Pick a number between 1 and 10011001
Raffle with 250 tickets and 3 prizes12503, no repeats
Six lottery-style numbers from 491496, no repeats, sorted
A 4-digit PIN099991
Random sample of 20 rows from 500150020, no repeats

How random is it?

The numbers come from the cryptographic random source built into your browser, which gathers unpredictability from your device's hardware and operating system. That is a higher standard than the simple formula most games and spreadsheets use. The tool also removes a subtle flaw called modulo bias, so every number in your range is exactly as likely as every other.

With or without repeats

With repeats is like rolling a die: the same number can come up again. Without repeats is like drawing tickets from a hat: once a number is out, it cannot be drawn again. Use no repeats for prize draws, seating orders and sampling.

Running a fair draw

Number your entrants in a list first, share your screen or record it, and generate the winning numbers in one go with No repeats ticked. Because the result is made on your device, there is no stored record, so take a screenshot if you need proof.

Frequently asked questions

Are the minimum and maximum included?

Yes. A range of 1 to 10 can return 1, 10 or anything between.

Can I generate negative numbers?

Yes. Type a negative value in the From box, for example -50 to 50.

Can I use this for a lottery?

You can use it to choose your numbers. It cannot predict a draw, because every combination is equally likely.

Is anything I enter sent to a server?

No. The tool runs entirely in your browser, so what you type never leaves your device.

Related tools