Random Number Generator

Pick one or many random numbers between any two whole numbers. Choose whether numbers can repeat, and sort the results if you like.

How to use the random number generator

  1. Enter the smallest and largest number you want. Both are included.
  2. Choose how many numbers to pick, up to 1,000 at once.
  3. Tick No repeats for all-different numbers, or untick it to allow duplicates.
  4. Press Generate, then copy the results if you need them.

Popular ranges

Open a ready-made generator: 1–21–31–41–51–61–81–101–121–201–501–521–1001–10000–9

Why the numbers are fair

Many simple generators use a shortcut that makes some numbers slightly more likely than others. This one uses rejection sampling: it discards the rare random values that would cause that bias, so every number in your range has precisely the same probability.

Frequently asked questions

How do I pick a random number between 1 and 10?

Set the minimum to 1 and the maximum to 10, then press Generate. Both ends are included, so 1 and 10 can both come up.

Can I generate numbers without repeats?

Yes. Keep "No repeats" ticked and every number in the result will be different, like drawing numbered balls from a bag. Untick it to allow the same number more than once.

How random are the numbers?

They come from your browser's cryptographic random number generator (the Web Crypto API), with a method that gives every number in the range exactly the same chance.

Can I use it for lottery numbers?

Yes. For example, set 1 to 69, five numbers, no repeats. Every combination is equally likely, so random picks win as often as any others.

More free tools