Skip to content
CalculatPage

Random Number Generator

Pick one or many random numbers within a range. Great for drawings, games, sampling and decisions.

Updated November 2026 · How we build calculators

Result

Your result will appear here

Enter your numbers, then press Calculate.

How the Random Number Generator works

A seeded pseudo-random generator produces values uniformly across the range you set. For unique numbers it rejects duplicates until the requested count is reached. Press Calculate to draw a new set.

Formula used

Integer = min + floor(random × (max − min + 1))

Decimal = min + random × (max − min)

Step-by-step example

Using the default values in the calculator above:

  1. Minimum: 1
  2. Maximum: 100
  3. How many numbers: 5
  4. Type: Whole numbers
  5. Duplicates: Allow duplicates

The calculator then applies the formula above and returns:

  • Your random numbers: 98, 31, 49, 82, 51
  • Sum: 311
  • Average: 62.2

What-if scenarios

Each table changes one input and keeps everything else at the calculator's default values.

If you change “Maximum”
MaximumYour random numbers
5049, 16, 25, 41, 26
7574, 24, 37, 62, 39
100 (default)98, 31, 49, 82, 51
150147, 47, 73, 123, 77
200196, 62, 97, 164, 102
If you change “How many numbers”
How many numbersYour random numbers
398, 31, 49
498, 31, 49, 82
5 (default)98, 31, 49, 82, 51
898, 31, 49, 82, 51, 35, 8, 77
1098, 31, 49, 82, 51, 35, 8, 77, 100, 83

Your random numbers for different minimum and maximum

Every other input is left at its default value.

Your random numbers: Minimum (rows) by Maximum (columns)
Minimum50100150200
0.549, 16, 25, 41, 2698, 31, 49, 82, 51147, 47, 73, 123, 77196, 62, 97, 164, 102
0.7549, 16, 25, 41, 2698, 31, 49, 82, 51147, 47, 73, 123, 77196, 62, 97, 164, 102
149, 16, 25, 41, 2698, 31, 49, 82, 51147, 47, 73, 123, 77196, 62, 97, 164, 102
1.550, 17, 25, 42, 2698, 32, 49, 82, 52147, 47, 74, 123, 77196, 63, 98, 164, 103
250, 17, 25, 42, 2698, 32, 49, 82, 52147, 47, 74, 123, 77196, 63, 98, 164, 103

Tips and background

For fair drawings, publish the range and method beforehand. For cryptographic uses, rely on a secure random source.

Picking random numbers fairly

Set a minimum and maximum, choose how many numbers you need and whether repeats are allowed. For a raffle with 50 tickets, choose whole numbers 1 to 50 with unique numbers so no ticket wins twice. Click Calculate for a new set.

How random is 'random' here?

The generator is pseudo-random: great for games, sampling and decisions, but not for security keys or regulated gambling. Lottery numbers drawn this way are no more or less likely to win than any others; to understand the odds see the probability calculator. Summarize your results with the average calculator.

How do you set up common uses?

UseMinimum and maximumSetting
Roll a six-sided die several times1 to 6Allow duplicates
Draw winners from numbered entries1 to number of entriesUnique numbers only
Pick people for a sample1 to size of listUnique numbers only

If you ask for more unique whole numbers than the range holds, the calculator shows an error instead of repeating values.

How can you run a fair drawing?

Number the entries and publish the list, the range and the rules before drawing. Run it once with witnesses or a screen recording, and keep the result. Repeating until you like the answer is not fair. These are pseudo-random numbers produced in your browser, so do not use them for passwords, security codes, money games or a regulated raffle. Check the legal rules for any prize drawing.

Common mistakes to avoid with the Random Number Generator

  • Requesting more unique numbers than the range holds.
  • Treating pseudo-random numbers as cryptographically secure.
  • Expecting a 'balanced' spread: true randomness has streaks.

Frequently asked questions

Are these numbers truly random?

They are pseudo-random, good for games and sampling but not for security or gambling.

Can I pick lottery numbers?

Yes, set the range and ask for unique numbers, but each combination has the same odds.

Can I generate decimals?

Yes, select decimals to get values with two decimal places.

How do I generate a random number between 1 and 10?

Set minimum 1, maximum 10 and one number, then press Calculate.

Can I generate numbers without repeats?

Yes, choose 'Unique numbers only'.