Need a number between 1 and 100, a winner for a giveaway, or a random sample from a numbered list? Set a minimum and a maximum, choose how many numbers you want, and this random number generator returns them instantly. Both ends of the range are inclusive, so 1 to 6 behaves exactly like a die, and the range can stretch anywhere between minus one billion and plus one billion.
Fairness is the whole point of a random picker, so the numbers come from the Web Crypto API rather than the predictable Math.random function. Rejection sampling ensures every value in your range is equally likely, without the hidden bias simple formulas create. Turn on Unique numbers when nothing may repeat, such as raffle tickets. Everything runs in your browser and nothing is stored.
How to use: Random Number Generator
- Enter the lowest allowed value in Minimum (inclusive).
- Enter the highest allowed value in Maximum (inclusive).
- Set Count to how many numbers you want, from 1 to 1,000.
- Tick Unique numbers if each number may appear only once.
- Select Generate numbers, then Copy the list or Download it as a text file.
Example: Minimum 1, Maximum 100, Count 5 with Unique numbers on draws five different numbers from 1 to 100.
Running a fair raffle or giveaway
Give every entrant a number, either their ticket number or their position in a sign-up list. Set Minimum to 1 and Maximum to the total number of entries, set Count to the number of prizes and tick Unique numbers so nobody wins twice. If you plan to draw backup winners, include them in the count from the start rather than running a second draw.
For transparency, share your screen or record the draw, and publish the entry list before you pick. Because the tool keeps no history, the recording is your proof.
Why cryptographic randomness and rejection sampling matter
Math.random is a fast pseudorandom generator meant for animations and games; its sequence can, in principle, be predicted. crypto.getRandomValues is built for security work and is designed to be unpredictable.
Turning random bits into a range also needs care. The common shortcut of taking a random value modulo the range size makes some numbers slightly more likely than others. Rejection sampling discards the values that would cause that skew and draws again, so every number in your range has exactly the same probability.
More ways to use a random number picker
Beyond prize draws, a quick and unbiased number is useful in plenty of everyday situations:
- Classroom activities: picking a student, a question number or a group.
- Board games and tabletop RPGs when the dice are missing; 1 to 20 replaces a d20.
- Random sampling of rows, invoices or survey responses for an audit.
- Choosing a lottery-style set of distinct numbers just for fun.
- Generating test inputs for spreadsheets and code.
Frequently asked questions
How do I generate random numbers with no repeats?
Tick Unique numbers before you select Generate numbers. Each value will then appear at most once in the result. The range must contain at least as many values as you ask for: drawing 10 unique numbers from 1 to 5 is impossible, and the tool will tell you so. Without the option, the same number can come up more than once, like rolling dice.
Are the minimum and maximum included?
Yes, both bounds are inclusive. A range of 1 to 100 can return 1, 100 or anything in between, which makes the tool behave like a 100-sided die. Negative numbers work too, so -50 to 50 is a valid range. The minimum must not be greater than the maximum, and both must stay within plus or minus one billion.
Is this random number generator truly random?
It uses the Web Crypto API, the cryptographically secure random source in your browser, which draws on entropy collected by your operating system. Combined with rejection sampling, every number in your range has an equal chance on every draw. That is more than fair enough for raffles, games, classroom picks and statistical sampling.
How do I pick a random number between 1 and 100?
The form opens with Minimum set to 1 and Maximum set to 100, so you only need to set Count to 1 and select Generate numbers. Each click produces a fresh, independent pick. Change the bounds for other ranges, for example 1 to 10 for a quick choice or 1 to 6 to replace a standard die.
Can I use this for an official lottery or a legal prize draw?
The randomness is strong, but official lotteries and regulated sweepstakes usually require certified equipment, an independent witness or audited procedures. Check the rules that apply where you live. For social media giveaways, school events and office raffles, recording the draw and publishing the entry list is usually all the transparency people expect.
Can I get the numbers sorted?
The tool returns numbers in the order they were drawn and does not sort them. If you need them in ascending order, paste the list into a spreadsheet and sort the column, or use a line-sorting tool. Keeping the draw order is useful in a raffle, where the first number can win the first prize.