Random Number Generator
Generate random numbers within a range.
Use on any page (bookmarklet)
Want Random Number Generator without leaving the page you're on? Drag the button below to your bookmarks bar, then click it on any website to open Random Number Generator right there — it runs entirely in your browser.
Use responsibly: a bookmarklet runs on whatever page you click it on. Avoid sensitive sites such as online banking, payment, or healthcare pages — you run it at your own risk. Everything is processed locally and no data is sent anywhere. See our Terms.
- Show your bookmarks bar if it's hidden — Ctrl+Shift+B (⌘+Shift+B on Mac).
- Drag the button above onto the bookmarks bar.
- Open any website and click the bookmark — the Random Number Generator panel appears in the top-right corner. Use ✛ to move it between corners, or ›/‹ to tuck it against the edge and pull it back out.
- Click the bookmark again (or the ✕) to close it.
Note: a few sites with strict security policies may block bookmarklets.
Examples
Pick a number 1–100
Output
73
Five unique numbers 1–50, sorted
Output
4 11 23 38 45
About this tool
This free online random number generator creates random numbers in any range you choose. Set the minimum, maximum, and how many you need, then pick whole numbers or decimals, force unique values with no repeats, and optionally sort the results. Everything runs in your browser with no upload.
How to use
- Enter a minimum, maximum, and how many numbers to generate.
- Choose whole numbers or decimals, and toggle Unique or Sort.
- Click Generate and copy the results.
Random is not the same as fair
A random number distributes evenly over whatever range you give it — which makes a draw fair only if the underlying list is. If some entrants appear twice, they are twice as likely to win, and no amount of randomness corrects that. Before drawing a winner, decide whether duplicates are intended (a bonus entry for sharing) or accidental (the same person submitted twice), and deduplicate the list if they are not.
For a draw anyone might question, record the entrant list and the drawn number before announcing it. The credibility problem with any online raffle is not the generator — it is that nobody can see what was fed into it.
Why the output rarely looks random
People expect randomness to alternate, and it does not. In a 1-to-10 draw a repeat arrives one time in ten; in a set of 23 people, two share a birthday more often than not. Genuine randomness produces clumps and streaks, and a sequence that looks “properly mixed” is usually a sign of something correcting itself, which real randomness never does. If repeats are unacceptable for your purpose, use the Unique option and draw the whole set at once rather than pressing generate repeatedly.
Not for anything secret
This tool is built for draws, sampling, and test data — not for credentials. Numbers you can see, in a range small enough to be useful for a raffle, are trivially guessable by definition. For anything that needs to be unpredictable to an attacker, use the random string generator or the password generator, both of which draw from a cryptographically secure source and produce values long enough to resist brute force.
Common uses
Drawing raffle and giveaway winners, rolling dice, picking lottery numbers, sampling rows from a dataset for a spot check, assigning participants to test groups, generating numeric test data, and settling a decision without arguing about it.
Frequently asked questions
Is a random draw the same as a fair draw?
Only if every entrant appears exactly once. A raffle where some people entered twice is not made fair by a random number — it is exactly twice as likely to pick them, which may be what you intended or may be an accident. Deduplicate your entrant list before drawing if each person should have equal odds, and keep the list and the drawn number if you need to show the result was not steered.
Why did I get the same number twice in a row?
Because that is what randomness looks like. In a 1-to-10 draw, a repeat happens one time in ten, and streaks feel far more suspicious than they are — the human expectation of "random" is actually an expectation of alternation. If repeats are genuinely unacceptable, turn on Unique and draw several numbers at once instead of drawing repeatedly.
Can I generate numbers in a custom range?
Yes. Set any minimum and maximum, and how many numbers you want. The range can include negatives and decimals.
What does the Unique option do?
With Unique on (whole numbers only), no value repeats — useful for raffles, lotteries, and picking distinct items. It needs at least as many integers in the range as the count you request.
Can it generate decimals?
Yes. Turn off Whole numbers to get random decimal values between your minimum and maximum.
Is it suitable for cryptographic keys or passwords?
No. It uses the browser's standard pseudo-random generator, which is fine for games, sampling, and picking winners but not for security. For passwords, use our Password Generator, which uses a cryptographic source.
Are the numbers generated privately?
Yes. Everything runs in your browser with no upload, so nothing is sent to a server.
Related tools