Random Number Generator

Random numbers in any range, with or without repeats

Set a range and press the button.

Every number in your range has the same chance: the numbers come from your browser’s cryptographic random generator. For draws with legal rules, such as official lotteries, use a certified service.

About this tool

Set the lowest and highest number, choose how many numbers you need and press Generate. Turn on “No repeats” when no number may come up twice, for example when you draw raffle tickets or giveaway winners. Add a label, like “Giveaway winner”, and your last 10 draws are kept in this browser with the time, so you can look back at them later. You can draw up to 1,000 numbers at once, and negative numbers work too.

How to generate random numbers

  1. Enter the lowest and the highest number in “Min” and “Max”. Both can come up.
  2. Choose how many numbers you need, from 1 to 1,000.
  3. Turn on “No repeats” if no number may come up twice, for example for raffle tickets.
  4. Add a label if you like and press “Generate”. The draw is saved in the history with the time.

What people use it for

How the numbers are drawn

Every whole number from Min to Max, including both, has the same chance: from 1 to 100, each number comes up 1 time in 100. The numbers come from your browser’s cryptographic random generator with rejection sampling, which avoids the small bias of the common “random value modulo range” shortcut.

Repeats happen more often than most people expect. Draw 10 numbers from 1 to 100 with repeats allowed, and at least two of them match about 37% of the time. That’s why “No repeats” exists: with it on, each number appears at most once in a draw.

Frequently Asked Questions

Is this random number generator fair?

Yes. Numbers are drawn with your browser’s cryptographic random generator (crypto.getRandomValues) and rejection sampling, so every whole number from your minimum to your maximum has exactly the same chance.

How do I get numbers without repeats?

Turn on “No repeats”. Each number then appears at most once in a draw, which suits raffle tickets, seat numbers or a running order. The range must hold enough numbers: from 1 to 10 you can draw at most 10.

How do I pick a giveaway winner?

Number the entries, for example the comments under your post, set the minimum to 1 and the maximum to the last entry, and press Generate. Add a label like “Giveaway winner” so the draw is easy to find in the history.

Can I use negative numbers?

Yes. Any whole numbers work, including negative ones, as long as the minimum isn’t higher than the maximum. For dice, the Dice Roller is quicker.

Where is my history kept?

Only in this browser. The last 10 draws are saved on your device, and “Clear history” removes them. Nothing is sent to our server.

Is there a number wheel?

Yes. The Number Wheel puts every number of your range on a wheel, up to 100 numbers, and spins for one, with a step and without repeats if you like. The odds are the same as here, because both tools use the same random generator. The wheel suits a draw that people watch, in a class or on a stream.

Last updated: · QuantumGlitch Studio

More tools