Advertisement

Free Online Random Number Generator

Generate random numbers within any range, with optional repeats.

Click Generate to get a random number.
Advertisement

About the Random Number Generator

This tool picks whole numbers inside a range you define. You choose a minimum, a maximum, and how many results you want, then optionally prevent repeats. It suits raffle draws, classroom activities, board-game dice substitutes, sampling, and quick simulations where you need an unbiased integer rather than a decision made by hand.

How to use it

  1. Enter a Minimum and Maximum. Both ends of the range are included.
  2. Set How many numbers? to a value from 1 to 100.
  3. Tick No duplicate numbers if every result must be different.
  4. Click Generate to draw the numbers; they appear as chips on the right.
  5. Click Copy to copy the list, one number per line.

A practical example

A raffle with 40 ticket holders can set the range to 1โ€“40, ask for one number, and generate a winner. For a lottery-style draw of six unique values from 1โ€“49, set the range to 1โ€“49, enter 6 results, and tick the no-duplicate option. If you reverse the minimum and maximum by mistake, the tool quietly swaps them, so 100 to 1 still works.

Randomness, limits, and privacy

When your browser supports it, numbers come from crypto.getRandomValues with rejection sampling, which avoids the modulo bias you get from a naive random index. Older browsers fall back to Math.random. Only integers are produced, the count is capped at 100, and a unique draw fails with a clear message if the range is too small to supply enough distinct values. Generation happens entirely in the page, so no range or result is sent anywhere, and nothing is stored between visits.

Frequently asked questions

Are the numbers genuinely random?

They come from your browser's cryptographic random source where available, so they are suitable for games and ordinary draws. They are not audited for regulated lotteries.

Can the same number appear twice?

Yes, unless you tick "No duplicate numbers". Duplicates are normal when the range is small and you request several values.

What happens if the minimum is larger than the maximum?

The tool swaps the two values automatically, so the range is always treated as the smaller number up to the larger one.

Related tools: Random Name Picker, Random Team Generator, Coin Flipper & Dice Roller.

Sponsored
Find a bug? Report now