Random Number Generator — Pick a Range
Numbers in a range you choose, drawn fairly.
Runs on your device What you paste is processed by your own browser. It is never sent to a server, and it is not stored anywhere after you leave the page.
Short answer
Random numbers can be generated for free in a web browser within any range, one at a time or a hundred at once, as whole numbers or decimals, with repeats allowed or every value distinct. The values are drawn from the platform's cryptographically secure random source using rejection sampling, so every number in the range is exactly equally likely — rather than from Math.random with a modulo, which is both predictable and slightly biased.
At a glance
| Accepts | Nothing — this tool generates |
|---|---|
| Produces | Random numbers, one per line |
| Processing | In your browser |
| Price | Free, no limits |
| Account | Not required |
Two details separate a fair draw from a sloppy one, and both are invisible in the output. The first is the source: this uses the operating system's cryptographic generator rather than Math.random, whose sequence can be predicted from a few observed values. The second is the method — taking a remainder of a random integer makes the low end of a range marginally more likely, and rejection sampling removes that bias entirely.
Neither matters for choosing which film to watch. Both matter the moment someone treats the result as fair: a prize draw, a randomised order, a sample selected from a list.
How to use it
- 1
Set the range
The lowest and highest values, both included. Defaults to 1 to 100.
- 2
Choose how many, and whether they may repeat
All different is what a prize draw or a lottery line needs; repeats allowed is what dice do.
- 3
Generate
The numbers appear one per line. Press again for a fresh draw.
- 4
Copy them out
Copy the list to the clipboard, or download it as a text file.
Frequently asked questions
Is this random enough for a prize draw?
The source is the operating system's cryptographic random generator and the sampling is unbiased, which is the best any software can offer. Whether a draw is fair also depends on it being run once and witnessed — no generator can help with that part.
Can I get numbers that never repeat?
Yes, choose all different. The count cannot exceed the size of the range, since there would be nothing left to draw.
Are both ends of the range included?
Yes, for whole numbers: 1 to 6 can produce both 1 and 6. Decimals are drawn from the lower bound up to but not including the upper, which is the usual convention for a continuous range.
Why not Math.random?
Because it is a fast non-cryptographic generator whose future output can be predicted from past output, and because combining it with a modulo biases the result. Neither is acceptable in something presented as a fair draw.
Are the numbers recorded anywhere?
No. They are generated in your tab and exist only there until you copy them. Nothing is logged and nobody else sees them.