99digest is in early access — tools are free while we grow.
Guide

How to Generate Random Numbers in a Range

To generate random numbers with this random number generator, enter a minimum and maximum, choose how many you want, and generate. You can turn on the no-duplicates option for unique numbers, which is useful for draws, sampling and games.

Follow along with the free Random Number Generator, which runs in your browser, or browse more tools in this category.

How to use the Random Number Generator

  1. Enter the lowest and highest number of the range.
  2. Choose how many numbers to generate.
  3. Turn on the no-duplicates option if each number should appear once.
  4. Generate and copy the results.

Worked example

Range 1 to 50 with 6 numbers and no duplicates gives six different values from 1 to 50, like a lottery draw.

Tips and common mistakes

  • The range is inclusive, so both ends can appear.
  • With no duplicates you cannot ask for more numbers than the range contains.
  • For anything security-sensitive, use a dedicated password or key generator instead.

Frequently asked questions

Are the numbers truly random?

They come from your browser’s random source, which is suitable for everyday draws and games.

Can I get decimals?

This tool generates whole numbers.

Is it private?

Yes. Generation happens in your browser.

Try the Random Number Generator Free, instant, and runs in your browser.