Random Number Generator
Generate random numbers in any range.
Generated numbers will appear here.
How to use it
- Set the minimum, maximum, and how many numbers.
- Choose whether the numbers must be unique.
- Click Generate and copy the results.
About this tool
The random number generator picks whole numbers in the range you set, using the browser cryptographic random source with rejection sampling so every value is equally likely. Turn on unique to draw without repeats, like a lottery pick, which needs a range at least as large as the count. It generates integers, not decimals.
Examples
Input
1 to 100, pick 5Output
Five numbers like 7, 42, 89, 13, 56Input
1 to 49, pick 6, uniqueOutput
Six different numbers, no repeatsCommon uses
- Pick lottery or raffle numbers
- Choose a random winner
- Roll dice or pick a value in a range
- Sample random ids for testing
FAQ
Are the numbers generated on a server?
No. They are generated in your browser with the secure random source. Nothing is sent anywhere.
How random are they?
They use the browser crypto generator with rejection sampling, so every number in the range is equally likely with no bias.
What does unique do?
It draws without repeats, so each number appears at most once. The range must be at least as large as the count.
Related tools
Embed this tool
Paste this snippet to put the tool on your own site. It runs entirely in the visitor's browser, the same as it does here.