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:
- Minimum: 1
- Maximum: 100
- How many numbers: 5
- Type: Whole numbers
- 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.
| Maximum | Your random numbers |
|---|---|
| 50 | 49, 16, 25, 41, 26 |
| 75 | 74, 24, 37, 62, 39 |
| 100 (default) | 98, 31, 49, 82, 51 |
| 150 | 147, 47, 73, 123, 77 |
| 200 | 196, 62, 97, 164, 102 |
| How many numbers | Your random numbers |
|---|---|
| 3 | 98, 31, 49 |
| 4 | 98, 31, 49, 82 |
| 5 (default) | 98, 31, 49, 82, 51 |
| 8 | 98, 31, 49, 82, 51, 35, 8, 77 |
| 10 | 98, 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.
| Minimum | 50 | 100 | 150 | 200 |
|---|---|---|---|---|
| 0.5 | 49, 16, 25, 41, 26 | 98, 31, 49, 82, 51 | 147, 47, 73, 123, 77 | 196, 62, 97, 164, 102 |
| 0.75 | 49, 16, 25, 41, 26 | 98, 31, 49, 82, 51 | 147, 47, 73, 123, 77 | 196, 62, 97, 164, 102 |
| 1 | 49, 16, 25, 41, 26 | 98, 31, 49, 82, 51 | 147, 47, 73, 123, 77 | 196, 62, 97, 164, 102 |
| 1.5 | 50, 17, 25, 42, 26 | 98, 32, 49, 82, 52 | 147, 47, 74, 123, 77 | 196, 63, 98, 164, 103 |
| 2 | 50, 17, 25, 42, 26 | 98, 32, 49, 82, 52 | 147, 47, 74, 123, 77 | 196, 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?
| Use | Minimum and maximum | Setting |
|---|---|---|
| Roll a six-sided die several times | 1 to 6 | Allow duplicates |
| Draw winners from numbered entries | 1 to number of entries | Unique numbers only |
| Pick people for a sample | 1 to size of list | Unique 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'.