Generate random whole numbers in a range, with or without repeats.
How to Use Random Number Generator
Set the minimum and maximum. Both are included in the range.
Choose how many numbers you want, from 1 to 1000.
Untick Allow Duplicates if every number must be different.
Click Generate Numbers, then Copy All to copy them as a comma-separated list.
Fair, unpredictable numbers
Numbers come from crypto.getRandomValues(), the browser's cryptographically secure random generator, and the method avoids the small bias simple random code can have, so every number in the range is equally likely. With duplicates turned off, the tool shuffles the range and takes the first numbers, so you always get exactly as many unique numbers as you asked for.
Only whole numbers are produced. If you type decimals, the range is rounded inward, so 1.5 to 10.2 picks from 2 to 10.
Running a fair draw
For a giveaway, number your entries, set the range from 1 to the number of entries, and generate one number (or several, with duplicates off, for multiple winners). Record your screen or share a screenshot if people need to trust the result.
Key Features & Practical Use Cases
Picking a winner for a giveaway or raffle from numbered entries.
Choosing random students, questions or tasks.
Generating lottery-style number picks without repeats.
Creating random test data or samples.
Frequently Asked Questions
Is this random enough for a giveaway?
Yes. It uses the browser's cryptographic random generator, and every number in the range has the same chance.
Can I get numbers without repeats?
Yes. Untick Allow Duplicates. You can't ask for more unique numbers than the range contains.
Are the minimum and maximum included?
Yes, both ends can be picked.
Can it generate decimals?
No, whole numbers only.
About OneClickly
OneClickly is a set of 119 free tools for PDFs, images, text, everyday math and code. They run in your browser, so the files and text you work with stay on your device.
Related Tools
Coin Flip Simulator - Flip a virtual coin for a fair heads or tails result, with a running tally.