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.
Common uses
Drawing raffle and giveaway winners, rolling dice or picking lottery numbers, sampling rows from a dataset, assigning random test data, and making quick unbiased decisions.
Frequently asked questions
Is this random number generator free?
Yes — it's a completely free online random number generator with no sign-up and no limits.
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