English

Random Number Generator

Pick one or many random numbers in any range. Free, private and runs in your browser.

Advertisement

About the Random Number Generator

Generate truly unpredictable random numbers in any range – for example 1 to 10, 1 to 100 or 1000 to 9999. Choose how many numbers you need, whether duplicates are allowed and whether to sort the result. It's perfect for raffles, lottery picks, giveaways, dice replacements, sampling and classroom games.

Like every tool on this site, it runs entirely in your web browser using JavaScript. Your files and text are never uploaded to a server, which makes it fast, free and private.

How to use the Random Number Generator

  1. Enter the minimum and maximum number (both included).
  2. Enter how many numbers you need.
  3. Choose No duplicates and/or Sort results.
  4. Click Generate and copy the numbers.

How random are the numbers?

The generator uses crypto.getRandomValues, the same cryptographically secure source browsers use for encryption keys. This is much less predictable than the Math.random function used by many simple tools, and every number in the range has an equal chance.

Unique numbers for raffles and lotteries

With 'No duplicates' each number can appear only once, like drawing numbered balls from a bag. For example min 1, max 49 and count 6 gives a lottery-style pick. The count can't be larger than the size of the range.

Frequently asked questions

Are the minimum and maximum included?

Yes, both are included. A range from 1 to 6 can return 1, 2, 3, 4, 5 or 6, just like a die.

Can I generate negative numbers?

Yes. Any whole numbers work, for example from -50 to 50.

How many numbers can I generate at once?

Up to 10,000 numbers per click.

Can I use it for an official prize draw?

It is fair and secure, but some contests require an auditable draw. Check your local rules and keep a screenshot or recording of the draw.

Related tools

Advertisement