Random Number Generator
Generate random numbers in any range, with or without duplicates.
Random numbers
About the Random Number Generator
Set a range and how many numbers you need, then generate. The no-duplicates option is ideal for lottery-style draws, raffle winners or sampling rows from a dataset.
Numbers are drawn with JavaScript's random generator and are uniformly distributed across the range you set, inclusive of both endpoints.
How to use the Random Number Generator
- Enter the minimum and maximum of your range.
- Choose how many numbers to draw.
- Enable 'No duplicates' if each number must be unique.
- Press Generate and copy the results.
Examples
| Input | Result |
|---|---|
| 1–6, one number | A dice roll |
| 1–49, six unique numbers | A lottery line |
| 1–100, ten numbers | A random sample |
Frequently asked questions
Are the numbers truly random?
They are pseudo-random, which is more than sufficient for games, draws and testing. For cryptographic keys use the Password Generator, which uses the browser's secure random source.
Is my data sent to a server?
No. This tool runs entirely in your browser using JavaScript. Nothing you enter is uploaded, logged or stored by AHRATOOLS.

