Advertisement
Advertisement

Random Number Generator

Generate one or many random numbers within a range.

—

How to use Random Number Generator

  1. Set your minimum and maximum range.
  2. Choose how many numbers to generate and whether duplicates are allowed.
  3. Click Generate to get your list instantly.

When a random number helps

People use random numbers for raffles and giveaways, picking who goes first, choosing a lottery-style set for fun, assigning students to groups, sampling rows to check in a data set, and board-game situations where dice are missing. The generator returns whole numbers between your minimum and maximum, inclusive, so a range of 1 to 100 can return both 1 and 100.

Choose how many numbers you want. Turn off repeats to draw unique numbers, as in a raffle where each ticket can win only once; allow repeats if you are simulating independent rolls.

How the randomness is produced

The numbers come from your browser's cryptographically secure generator, the same source used for security keys. The code also avoids a common mistake called modulo bias, which makes some results slightly more likely when a range does not divide evenly. Every number in your range has the same chance each time.

Random does not mean evenly spread. A short run can easily repeat a number or cluster, and that is normal; people tend to expect more variety than true randomness produces.

Fair use and limits

For a public draw, do it live or record your screen so participants can see the result, and announce the rules and range before you generate. This tool is fine for casual and classroom use, but it is not a certified drawing system, so do not rely on it for regulated lotteries or sweepstakes, which have legal requirements in many places. When you need names instead of numbers, try the Spin the Wheel or Random Team Generator tools. Nothing is uploaded or stored.

Setting the range

The minimum and maximum are both included, so a range of 1 to 6 can return any of the six numbers. If you turn on No duplicates, the range must contain at least as many numbers as you ask for, since each one can appear only once. For example, you cannot draw ten different numbers from the range 1 to 5.

Good and bad uses

Random numbers are handy for choosing a winner from numbered entries, picking teams, drawing raffle tickets, sampling rows from a list, or settling a decision. For a giveaway, tell people the rule in advance and keep a record of the draw.

Do not use it for passwords, security keys or anything where a guess would matter. Use the Password Generator for that. Games of chance and prize draws are regulated in many places, so check the rules before running one for money.

Examples

Set the range to 1 and 100 to pick a number between those values, 1 to 6 to imitate a die, or 1 to the number of people in a group to choose someone at random. Ask for several numbers at once with No duplicates turned on to draw a set of winners, or assign a number to each name on a list first and then use the results.

Frequently asked questions

Is this truly random, or predictable?
It uses your browser's cryptographically secure random number source, and every number in your range is equally likely to come up. That makes it suitable for everyday uses like games and casual drawings.

Can I generate numbers without duplicates?
Yes — turn off duplicates and each number in the result will be unique, useful for things like drawing raffle numbers or unique IDs from a fixed range.

What's the largest range I can use?
Any range of whole numbers works as long as the gap between the minimum and maximum is under about 9 quadrillion (9,007,199,254,740,991), with or without duplicates. You can generate up to 1,000 numbers at a time.

Advertisement

You might also need