Random Number Generator
Generate random numbers in any range, with or without duplicates, right in your browser.
- Free, no account
- No watermark
- No usage limit
About the Random Number Generator
Hand it a range and you get back a fair, unpredictable number, and it's that word fair that a lot of free tools get wrong. Plenty of the number pickers online run on a reproducible formula, the same math a video game leans on for its random events. Give that formula the same starting value and it produces the identical "random" sequence every time. That's fine when you're replaying a game level. It's a real problem for a raffle or a giveaway, because anything reproducible can eventually be predicted. This tool pulls from your browser's cryptographic random source instead, the class of randomness built for security work, so the numbers you drew before give away nothing about the next one.
The rest is straightforward. Set a minimum and a maximum, say how many you want, pick whole numbers or decimals, and choose whether repeats are allowed. Out comes a single value or a batch of up to 10,000, in one click. People use it for raffles, giveaways, lottery-style picks, assigning teams or turns, pulling a random sample, or settling any call where the answer has to hold up in front of other people.
Everything runs on your own device. Your inputs and your results never leave the browser or land on a server. Recent draws stay on this device so you can look back, and a refresh clears the current result, so copy whatever you want to keep.
How to use
- Set a range, or tap a preset. Type a Minimum and Maximum, or hit a quick range like 1-6, 1-10, 1-20, 1-100, or 1-1000. Both ends are included, so 1 to 6 can return anything from 1 through 6. Negatives are fine, a range like -50 to 50 works.
- Choose how many. Enter a count for a single number or a whole list, up to 10,000 at a time. For six lottery numbers, set How many to six.
- Pick whole or decimal. Leave it on Whole for integers, or switch to Decimal and set 0 to 10 decimal places for values like 3.72 or 0.048.
- Decide on repeats. Keep Allow duplicates checked to let numbers repeat, or uncheck it for a set with no repeats at all.
- Sort if you want. Keep results in draw order, or flip to low-to-high or high-to-low without redrawing.
- Generate, then copy or save. Copy the set as commas, lines, or spaces, or download a text file. For a shortcut, the Coin flip, Dice roll, and Lotto 6 / 49 buttons set everything in one tap.
Why fairness is the whole job
Two things separate a draw you can trust from one you can't, and this tool handles both. The first is predictability, covered above. A cryptographic source means nobody can watch your results and work out the pattern. The second is bias, and it's the one almost no free tool bothers with.
The obvious way to squeeze a random number into your range leaves a faint lean, so a few values come up slightly more often than the rest. On a single coin flip you'd never notice. Across thousands of draws in a giveaway, that lean is the gap between fair and quietly rigged. This generator throws away the rare edge draws that would cause the skew and pulls again, which keeps the spread genuinely even. Every number in your range gets the same shot, and you can check it yourself: generate a few thousand from a small range, tally how often each one lands, and the counts sit close to level with only natural wobble.
I'll be straight about the ceiling, though. This isn't "true" random in the physics sense. That bar needs hardware measuring something like radioactive decay or atmospheric noise, and no browser has it. For a prize draw, a sample, or a game, the browser's secure source is as close as software gets, and it's far safer than the predictable pickers it's up against.
Duplicates on, or a clean no-repeat draw
This is the setting people misjudge most, so it's worth a minute. Leave Allow duplicates checked and every number is drawn on its own, independent of the ones before it, so the same value can come up again. Uncheck it and it works like dealing cards from a deck, once a number is out it can't come back, so every number in your result is different.
For anything lottery-style, unique is what you want. Six numbers from 1 to 49 with repeats off matches a real draw, where a ball can't pop out of the machine twice in one game. Leave duplicates on for that and you might see the same number more than once, which no lottery allows.
And if you ask for more unique numbers than the range can actually hold, six distinct numbers between 1 and 5, say, the tool tells you plainly instead of silently handing you a repeat or coming up short. A lot of free pickers botch exactly this, they either repeat a value you told them to keep unique or hand you fewer than you asked for without a word. Widen the range, add decimal places, or turn duplicates back on, and you're moving again.
Decimals, big batches, and the math that rides along
Not every job wants a plain integer. Switch to Decimal and set the precision anywhere from 0 to 10 places, handy for probabilities, weightings, pricing tests, or any model that expects a fractional value. Ask for a number between 0 and 1 at three places and you might land on 0.482.
For bigger jobs, generate up to 10,000 at once. Short lists show as a numbered grid, longer ones drop into a scroll box, and one click copies the whole set as commas, one per line, or spaces. Draw more than one number and a small panel adds up the count, sum, average, lowest, and highest for you, which saves a trip to the calculator when you're sampling or feeding a simulation. Sorting reorders what's already on screen without a fresh draw, so low-to-high or high-to-low changes the order, never the numbers themselves.
Frequently asked questions
How do I generate a random number between 1 and 100?
Tap the 1-100 preset for an instant value, or type 1 in Minimum, 100 in Maximum, and press Generate. Both ends are included, so 1 and 100 can each come up. Want ten at once? Set How many to 10. The same steps cover any range, and the popular ones have their own preset buttons.
Why did the same number come up more than once?
With Allow duplicates on, each draw is independent, so on a small range repeats show up fast and that's normal, not a glitch. Pull eight numbers from 1 to 10 and a couple will usually match. If you need every value distinct, uncheck Allow duplicates and the tool guarantees no repeats.
Why did I get an error about unique numbers?
It means you asked for more distinct values than the range can supply with duplicates off. Turning on decimals is usually the quickest way out, and it's the option people forget. Switching from Whole to Decimal multiplies the pool of possible values fast, since 0 to 1 holds 101 of them at two decimal places and 1001 at three, so a no-repeat draw that won't fit as whole numbers clears the moment you add precision. If you specifically need integers, widen the range or drop the minimum instead, or just allow duplicates. The check is there on purpose, so the tool never repeats a value you told it to keep unique.
Is this fair enough to pick a real prize winner?
For a giveaway, a classroom draw, or a club raffle, yes. The distribution is even and the source is unpredictable, which is everything an informal draw needs. For a regulated or legally binding lottery, the rules often require certified hardware and an audit trail, so check what your jurisdiction demands. Either way, screenshot or copy the result the moment it appears, since nothing is stored online for you to look up later.
Can it handle negative numbers or very large ranges?
Negative minimums and very large spans both work. A range like -50 to 50 is fine, and you can span millions while every value stays equally likely. Even when you only want a handful of numbers out of an enormous range, it stays fast and doesn't favor any part of the span. For weighted odds or a bell-curve spread you'd want a different tool, since this one is deliberately uniform.
Can I save or share a specific setup?
Yes. Your settings ride in the page's link, so copy the URL after you've set a range and count, and whoever opens it lands on the same configuration. The tool also remembers your last setup on this device, and your recent draws sit just below it with a Use button that drops those exact settings back in.
Does it work offline, and is anything sent to a server?
Once the page has loaded it keeps working with no connection, because the numbers are made right in your browser. Nothing you enter or generate is uploaded, logged, or saved online, not even by us. Recent draws live on this device alone, and you can clear them whenever you like.