Random Number Generator
Pick random whole numbers between any minimum and maximum, with or without repeats.
Runs in your browser — nothing is uploaded
How to use Random Number Generator
- 1
Enter the Minimum and Maximum (both are included in the range).
- 2
Enter How many numbers you want.
- 3
Tick No repeats if each number may appear only once, and choose a Sort order.
- 4
Click Generate, then Copy to take the results.
About this tool
Numbers are drawn with your browser's cryptographic random number generator, crypto.getRandomValues, rather than Math.random. Raw random bits are turned into a range with rejection sampling: values that would make some numbers slightly more likely than others are thrown away and redrawn. The result is that every number from the minimum to the maximum has exactly the same chance.
With No repeats ticked, the tool shuffles the range (a partial Fisher–Yates shuffle) for small ranges, or draws and skips duplicates for very large ones. Either way every set of distinct numbers is equally likely, which is what you want for raffles, picking winners, or choosing a random sample.
You can use any whole numbers, including negatives, up to about nine quadrillion in size, and generate up to 10,000 results at a time. Nothing is logged, so the draw cannot be replayed or seen by anyone else; if you need proof of fairness for a public draw, record your screen while you click Generate.
Questions people ask
Is this random number generator truly random?
It uses the same cryptographic generator browsers use for encryption keys, seeded from your operating system's entropy. It is unpredictable and unbiased for any practical purpose.
Are the minimum and maximum included?
Yes. A range of 1 to 10 can return 1, 10 or anything in between.
How do I pick lottery numbers?
Set the range your lottery uses, for example 1 to 49, set How many to 6, tick No repeats and sort low to high.
Why can't I get more unique numbers than the range?
Between 1 and 10 there are only ten different numbers, so you cannot draw eleven without repeating one. Widen the range or allow repeats.
Related tools
- Dice RollerRoll up to ten d4, d6, d8, d10, d12 or d20 dice and see the total and your roll history.
- Coin FlipFlip one coin or up to ten and keep a running tally of heads and tails.
- Spin the WheelType your options, spin the wheel and let it pick a winner at random.
- QR Code GeneratorMake a QR code for a link, Wi-Fi network, contact card or message, then download it as PNG or SVG.
- Password GeneratorGenerate strong random passwords or easy-to-type passphrases, with a strength estimate for each setting.
- UUID GeneratorGenerate random v4 or time-ordered v7 UUIDs, one or a thousand at a time.