Skip to main content
Numbers and dice100% FreeInstant

Random Number Generator: Random Numbers in Any Range

This free random number generator picks whole numbers or decimals between any two values. Choose how many you need, allow or block repeats and sort the list, using your browser’s secure random source.

By Debmedia Technologies LLP · Kolkata, India · Updated

What Is It and When Do You Need It?

A random number generator makes numbers that nobody can predict. People use it for games, raffles, picking a winner, sampling data, teaching probability and settling arguments fairly.

Set the range and how many numbers you want. The tool uses unbiased selection, so every number in the range has exactly the same chance.

How to Use This Tool

  1. Enter the minimum and the maximum.
  2. Enter how many numbers you need.
  3. Choose whole numbers or decimals, and whether repeats are allowed.
  4. Press Generate and copy the list.

How the Calculation Works

Whole numbers are chosen with rejection sampling on 32-bit random values from the browser’s crypto source, which avoids the small bias of a simple modulo. Without repeats the tool shuffles the range with the Fisher-Yates method and takes the first numbers. Decimals are chosen uniformly and rounded to two places.

Worked Example

Asking for 6 unique numbers from 1 to 49 gives a lottery-style draw such as 7, 14, 23, 31, 38, 45. Asking for 3 whole numbers from 1 to 10 with repeats allowed might give 4, 4, 9.

Common Uses

  • Raffles and giveaways.
  • Games and classroom activities.
  • Sampling and testing.
  • Making fair choices.

Tips and Common Mistakes

  • Use unique mode for draws and lotteries.
  • Large ranges with unique numbers are limited to 100,000 values.
  • Press again for a fresh set.

Next, you may need the dice roller, lottery number generator, random name picker, coin flip.

Everything runs in your browser. Nothing you type is uploaded, stored or sent to any outside service.

Frequently Asked Questions

They come from your browser’s cryptographic random source, which is suitable for games, draws and sampling. It is not meant for generating secret keys, for which use a password manager.
Yes. Both the minimum and the maximum can be picked.
Each number can appear only once, like drawing balls from a bag. You cannot ask for more unique numbers than the range holds.
Yes. Set a negative minimum, such as −50 to 50.

Disclaimer: results are calculated in your browser from the numbers you enter. Check important results before you rely on them for money, health, safety or legal decisions.