Random Number Generator

Generate random numbers between any range. Single or multiple numbers, integers or decimals.

About this calculator

Generate one or many random numbers in any range. Choose how many, forbid duplicates, and copy the result.

Useful for raffles, games, classroom picks, sampling and quick, unbiased decisions.

How to use it

  1. Enter Min, Max and Count.
  2. Choose no duplicates or decimals.
  3. Press Generate.

How the numbers are chosen

Browsers expose crypto.getRandomValues, a cryptographically strong generator, and Math.random, a fast pseudo-random one. To pick an integer in [min, max] uniformly: min + floor(random × (max − min + 1)). With no duplicates ticked, numbers are drawn without replacement, like pulling balls from a bag, so you cannot request more numbers than the range holds. Each number is equally likely regardless of earlier draws: after five heads in a row, the next flip is still 50/50.

Worked example

Examples

1 to 6Dice roll
1 to 100, 1 numberQuick pick
1 to 49, 6 numbers, no duplicatesLottery-style ticket (each combination has a 1 in 13,983,816 chance)
0 to 1Coin flip

Runs in your browser. Nothing is uploaded.

Tips and common mistakes

  • Tick No duplicates for raffles and draws.
  • For a fair lottery pick, every combination is equally likely, including 1-2-3-4-5-6.
  • Use whole-number ranges; decimals are optional where offered.
  • Sort the results if you need an ordered list.
  • For passwords or keys use the password generator, not a plain number picker.

Frequently asked questions

How does a random number generator work?

It draws numbers from the browser's random source and maps them evenly to your range.

Are the numbers truly random?

They come from a strong pseudo-random source, which is fine for games and draws.

Can I avoid repeats?

Yes, tick No duplicates.

Is each number equally likely?

Yes.

Can I use it for a giveaway?

Yes, but for official lotteries follow local regulations.

What is the chance of a specific lottery combination?

In a 6-of-49 draw, 1 in 13,983,816.

Related tools