Skip to content
Daily Dose of Utilities

Random Number Generator

Set a minimum, a maximum and how many numbers you want, then press Generate. Numbers are produced in your browser using a cryptographically secure random source, the same kind used for encryption.

About this generator

Numbers are generated with the browser's cryptographic random source (crypto.getRandomValues) rather than Math.random, using rejection sampling so every number in your range has an exactly equal chance of appearing β€” no bias toward either end of the range.

Turning on 'No duplicates' draws numbers without replacement, useful for picking raffle winners, shuffled draft orders, or lottery-style number sets. It's limited to however many unique values actually exist in your chosen range.

Dice, raffles and lottery numbers

To roll a die, set the range to 1 to 6. To pick 3 winners from 250 raffle entries, number the entries, set 1 to 250, ask for 3 numbers and turn on 'No duplicates' so nobody wins twice. A lottery-style draw like 6 numbers from 1 to 49 works the same way.

You can generate up to 10,000 numbers at once, negative numbers work, and the range can be up to about 4.29 billion numbers wide.

What 'random' means here

Every draw is independent: a number that just came up is exactly as likely to come up again, and no number is ever 'due'. Believing otherwise is the gambler's fallacy. With 'No duplicates' off, repeats in a long list are normal and expected. In a list of 23 numbers from 1 to 365, there's a better than even chance that two match, the same maths as the famous birthday problem.

Frequently asked questions

Is this truly random?
It uses your browser's cryptographically secure random number generator, the same source used for encryption keys β€” a strong source of randomness, not a predictable pattern like a basic pseudo-random function.
Can I generate numbers without duplicates?
Yes β€” turn on 'No duplicates' to draw a unique set, up to the total count of numbers available in your chosen range.
Is anything sent to a server?
No. Every number is generated locally in your browser; nothing is uploaded or logged.
Can I use this to pick lottery numbers?
Yes, it will draw a fair random set. But every combination has exactly the same chance of winning, so no method of choosing numbers improves your odds.

Related tools