Skip to content
Popular Calculators
Browse Other calculators

Random Number Generator

Generate random whole numbers between any minimum and maximum — one or many, with or without repeats, sorted if you like — with an optional seed.

Optional. Any word or number repeats the same result; leave empty for a fresh result.

About the Random Number Generator

Random numbers are useful in more places than you might expect: choosing a winner for a giveaway, picking a student to answer a question, deciding who goes first in a game, selecting a random sample for a survey, assigning people to groups, or choosing lottery numbers. Asking a person to "think of a random number" does not work well — people avoid repeats, favour certain numbers and rarely pick the ends of a range.

This random number generator picks whole numbers between any minimum and maximum. Choose how many numbers you need, whether repeats are allowed, and whether to sort them. It shows the chance of each number, the sum and average of the draw, and lets you use a seed to repeat exactly the same result.

How to Use the Random Number Generator

Enter the minimum and maximum. Both are included in the range.

Enter how many numbers you want, up to 1,000.

Tick no repeated numbers if each number may appear only once, like drawing balls from a bag. Tick sort to list them from lowest to highest.

Leave the seed empty for fresh numbers each time you press Calculate, or enter any word or number to get a repeatable result.

How the Numbers Are Chosen

  possible numbers  =  maximum − minimum + 1
  chance of each    =  1 ÷ possible numbers
  no repeats        =  a shuffle of the range, taking the first numbers

Without a seed, each number is drawn using the browser's cryptographic random generator, the same technology used to create secure keys. With no repeats, the calculator uses a Fisher–Yates shuffle, which makes every possible set of numbers equally likely.

Step-by-Step Example

Five numbers from 1 to 100 with no repeats.

  Possible numbers:  100 − 1 + 1       =  100
  Chance of each:    1 ÷ 100           =  1%
  Expected average:  (1 + 100) ÷ 2     =  50.5

Six lottery-style numbers from 1 to 49, sorted, no repeats. The calculator returns six different numbers in ascending order, each set equally likely.

What "Random" Means Here

A good random number generator has two properties. It is uniform: every number in the range is equally likely. And it is unpredictable: knowing earlier numbers does not help predict the next. Computer programs usually generate "pseudo-random" numbers from a starting value, which is why a seed can reproduce them. Without a seed, this calculator draws on cryptographic randomness from your device, which is both uniform and unpredictable.

Using a Seed

A seed is simply a starting value. The same seed with the same settings always gives the same numbers. This is handy for teachers showing a worked example, for anyone who needs to show others exactly how a draw was made, or for repeating a random selection later. For a genuinely fresh draw, leave the seed empty.

Fair Draws and Giveaways

For a social media giveaway or a classroom draw, number the entries, set the range from 1 to the number of entries, and generate one number (or several with no repeats for several winners). Record the result — or use a seed announced in advance — so everyone can see the draw was fair. For regulated lotteries and prize draws with legal requirements, use an independently certified draw process.

Random Numbers and Human Bias

Studies consistently show that when people are asked to pick a random number from 1 to 10, far more choose 7 than chance would suggest, and very few choose 1 or 10. Asked to write a random sequence, people avoid repeating digits and switch too often between high and low numbers. A generator avoids these biases entirely, which is why it is the right tool whenever fairness matters.

Random Samples and Research

Researchers and auditors use random numbers to choose samples fairly. To select 20 households from a list of 1,000, number the list from 1 to 1,000 and generate 20 numbers with no repeats; every household has the same chance of being chosen, and any group of 20 is equally likely. The same approach works for spot-checking invoices, choosing products for quality testing or assigning participants to groups in an experiment. Recording the seed used makes the selection easy to document and repeat.

Random Teams and Groups

To split people into teams, number them and generate all the numbers in the range with no repeats — for 12 people, 12 numbers from 1 to 12. The first four numbers form team one, the next four team two, and so on. Because the order is a random shuffle, every possible arrangement of teams is equally likely, which avoids arguments about who picked whom.

Understanding Your Result

Random numbers lists the numbers drawn.

Range confirms how many numbers and the range used.

Chance of each number gives the probability of any single number.

Sum and average compares the draw with the expected average.

Seed explains whether the result can be repeated.

Worth knowing explains where the numbers come from.

When Should You Use This Calculator?

Choosing a giveaway winner.

Picking students or team members at random.

Selecting a random sample for a survey or audit.

Choosing lottery numbers.

Playing games that need random numbers.

Common Mistakes

Forgetting that both ends of the range are included.

Asking for more unique numbers than the range contains.

Using a seed when a fresh draw is needed.

Expecting the average to match exactly in a small draw.

Using it for regulated prize draws that need certification.

Frequently Asked Questions

How do I pick a random number between 1 and 100?

Set the minimum to 1 and the maximum to 100 and press Calculate. Every whole number from 1 to 100, including both ends, has the same 1 in 100 chance. Press Calculate again for a new number.

Can I generate numbers without repeats?

Yes. Tick no repeated numbers and each number can appear only once, like drawing numbered balls from a bag. You cannot ask for more numbers than exist in the range: from 1 to 49 there are only 49.

How random are the numbers?

Without a seed, they come from your browser's cryptographic random generator, the same kind used for security, so they are unpredictable and unbiased. For regulated prize draws, use an independently certified draw.

What does the seed do?

A seed makes the result repeatable: the same seed with the same settings always gives the same numbers. That is useful for showing others how a draw came out, or for classroom examples. Leave it empty for fresh numbers.

How do I pick lottery numbers at random?

Set the range to the lottery's pool, such as 1 to 49, ask for 6 numbers with no repeats and sort them. Random picks are as likely to win as any other, and less likely to be shared with other players.

What is the average of random numbers?

Over many draws, the average approaches the midpoint of the range: 50.5 for 1 to 100. A small number of draws can be well above or below it, which is normal random variation.

Last reviewed September 28, 2026 by the CalculatorPeak editorial team.