Random Number Generator – Pick Numbers in Any Range

Set a range and click Generate.

About Random Number Generator

Choose a minimum and maximum, decide how many numbers you want, and whether duplicates are allowed. Numbers come from your browser's cryptographic random source, not a predictable pseudo-random function.

Most online random number generators use the ordinary pseudo-random function built into JavaScript, which is fine for a shuffle but is not unpredictable — its output can be reproduced if you know its internal state. This tool uses the same secure random source the browser uses for cryptography, which matters if the result decides anything people care about.

Turning duplicates off draws without replacement, like pulling numbered balls from a bag and not putting them back. That is what you want for a raffle or a lottery-style draw; leaving duplicates on is right for dice rolls or independent samples.

What you can use it for

  • Draw a winner fairly from a numbered list of entries.
  • Pick lottery-style numbers without repeats.
  • Roll dice or simulate a coin flip using a small range.
  • Select a random sample of rows from a dataset.
  • Settle a decision between numbered options.

How it works, step by step

  1. 1

    Set the range

    Enter the lowest and highest numbers you want to include.

  2. 2

    Choose how many

    Generate a single number, or a batch in one go.

  3. 3

    Allow or prevent duplicates

    Turn duplicates off for a draw where each number can only come up once.

  4. 4

    Generate

    The numbers appear immediately and can be copied.

Frequently asked questions

Are these numbers truly random?

They come from the browser's cryptographically secure random source, which is seeded by the operating system. That is far stronger than the ordinary pseudo-random function most generators use, though no software source is random in the physical sense.

Is this fair enough for a giveaway or raffle?

Yes. The source is unbiased across the range and unpredictable. Turn duplicates off so the same entry cannot be drawn twice.

What does preventing duplicates do?

It draws without replacement, so every number in the result is different. It requires a range at least as large as the count you asked for.

Are the minimum and maximum included?

Yes, the range is inclusive at both ends.

Is anything sent to a server?

No. The numbers are generated in your browser, so the result never travels anywhere and cannot be observed or influenced remotely.