Random Number Generator

Generate random numbers

This free Random Number Generator creates lists of random numbers inside any range you choose, with the controls people actually ask for. Set a minimum and maximum, decide how many numbers you want, choose whether decimals are allowed and how many decimal places to show, and optionally demand that every number be unique with no repeats. The results appear in a box ready to copy with one click, which makes the tool handy for raffles and prize draws, picking classroom examples, generating test data, seeding games, or fairly choosing who goes first.

The generator is honest about its limits. If you ask for more unique whole numbers than exist in the range — fifty unique numbers between one and ten, for example — it explains the problem instead of looping forever or quietly repeating values. Whole numbers are generated across the full inclusive range, so both the minimum and maximum can appear. The randomness comes from the standard random function built into your browser, which is perfectly suitable for games, draws and everyday decisions. Everything runs locally on your device, so your settings and results are never uploaded or stored anywhere.

How to use

  1. Type the smallest value allowed in the Minimum box.
  2. Type the largest value allowed in the Maximum box.
  3. Choose how many numbers to generate and the decimal places.
  4. Tick the unique box if repeats are not allowed, such as for a draw.
  5. Click Generate, then Copy results to use the list anywhere.

Frequently asked questions

Are the minimum and maximum included?

Yes. For whole numbers the range is inclusive, so generating between one and six can produce any of one, two, three, four, five or six, just like rolling a die. Decimal results can also land on the endpoints.

Why did the unique option show an error?

Unique generation is impossible when you ask for more numbers than the range contains. Ten unique whole numbers need a range of at least ten values. Either widen the range, request fewer numbers, or untick the box to allow repeats.

Is this random enough for a fair prize draw?

For everyday draws, raffles and games, yes: every value in the range has an equal chance on each draw. It is not a certified or cryptographic system, so regulated lotteries or security uses should rely on specialised audited tools instead.

Can I generate decimal numbers?

Yes. Set decimal places to anything from one to ten and results are rounded to that precision, for example 4.27 with two places. Whole number generation is simply the special case of zero decimal places.