Random Number Generator
Generate one or many random numbers in any range, with or without repeats, sorted or in draw order.
Random number between 1 and 100
–
No repeats
Order
- Possible values in range
- 100
- Chance of any single number
- 1 in 100
- Sum of results
- –
- Average of results
- –
Rate this tool
- ✓ Free, no sign-up
- ✓ Instant results as you type
- ✓ Works on phone and desktop
- ✓ Runs in your browser – nothing is stored
Advertisement
How does the Random Number Generator work?
Set a minimum and maximum, choose how many numbers you want, and press Generate. For example, picking 1 number between 1 and 100 gives each value a 1 in 100 chance. Turn on Unique to draw numbers with no repeats, like a raffle.
Last updated
How to use the Random Number Generator
1. Set the range
Enter the minimum and maximum whole numbers.
2. Choose options
Pick how many numbers, unique or repeats, sorted or as drawn.
3. Generate
Press Generate; past draws stay in the history list.
How it works
For each number, the generator picks a whole number between your minimum and maximum, inclusive, with every value equally likely:
Number of possible values N = max − min + 1
Probability of any one value = 1 ÷ N
Random integer = min + floor(random() × N)
- random() returns a value from 0 up to (but not including) 1.
- floor rounds down to a whole number.
With Unique turned on, each drawn number is removed from the pool, like pulling raffle tickets from a hat, so you can't request more numbers than N.
Worked examples
- One number from 1 to 100: N = 100, so each value has a 1 in 100 (1%) chance.
- A die roll (1 to 6): N = 6, each face 1 in 6 (about 16.7%).
- Three unique winners from 250 entries: N = 250; the first pick has a 1 in 250 chance of being any given ticket, and no ticket can win twice.
Odds of common draws
| Draw | Possible outcomes |
|---|---|
| Coin flip (1–2) | 2 |
| One die (1–6) | 6 |
| Card from a deck (1–52) | 52 |
| 1 to 100 | 100 |
| Pick 6 unique from 1–49, any order | 13,983,816 |
The last line uses combinations: 49! ÷ (6! × 43!).
With or without repeats?
- Allow repeats for simulations, dice rolls and sampling with replacement. The same number can come up twice, and that's expected: in 23 picks from 1 to 365, there's a better than 50% chance of at least one repeat (the "birthday problem").
- Unique for raffles, assigning teams or seats, and lottery-style picks.
How random is it?
Browsers generate random numbers using algorithms seeded from system entropy. For giveaways, games, classroom picks and statistics practice, the results are effectively unpredictable and evenly spread. For cryptographic keys, regulated lotteries or high-stakes security uses, rely on purpose-built tools and published standards instead.
Tips for fair drawings
- Number entries in order (1 to N) before drawing, and keep the list.
- Decide the rules (how many winners, unique or not) before you generate.
- Screen-record or draw in front of participants for transparency.
Related calculators
- Average Calculator to analyze a set of generated numbers
- Percentage Calculator to turn odds into percents
Sources
Advertisement
Advertisement
Random Number Generator FAQ
Are the numbers truly random?
They use your browser's cryptographic random source, which is suitable for games, raffles and everyday picks.
Can I generate numbers without repeats?
Yes. Choose Unique and every number in the result will be different.
How do I pick a raffle winner?
Set the minimum to 1 and the maximum to the number of tickets, then generate one number.
Can I use negative numbers?
Yes. Any whole-number range works, such as −50 to 50.
How many numbers can I generate at once?
Up to 1,000 per draw. With Unique on, the count cannot exceed the size of the range.
Is this calculator free?
Yes. It is completely free, needs no sign-up and works in any browser on phone, tablet or desktop.
Is my data saved?
No. Every calculation runs in your browser. Nothing you type is sent to a server or stored.
Related calculators
- AgeFind your exact age in years, months and days from your date of birth, plus total weeks and days and the countdown to your next birthday.
- TipWork out the tip and split the bill between any number of people.
- DiscountFind the sale price and how much you save after a percentage discount, with optional sales tax.
- Days Between DatesCount the days, weeks and weekdays between two dates.
- Add Days to DateFind the date a number of days before or after any date.
- HoursCalculate the hours and minutes between two times, minus an unpaid break.
Random Number is also available in
- English
- Español