Random Number Generator
Set a range, choose how many numbers you need, and generate them instantly using a cryptographically secure random source.
How to use the random number generator
- Set a minimum and maximum value for the range you want numbers drawn from.
- Choose how many numbers to generate at once, from 1 to 100.
- Check "No duplicate numbers" if you need each result to be unique — handy for raffle draws or lottery-style picks.
- Click "Generate" — results appear as a list you can copy in one click.
Why use a random number generator?
This tool is useful for picking raffle winners, shuffling a list, rolling dice, drawing lottery-style numbers, sampling data, or breaking ties fairly. Instead of relying on the ordinary Math.random function, it uses the browser's Web Crypto API with rejection sampling, so every number in your chosen range has an exactly equal chance of being picked — no subtle bias toward smaller or larger values near the edges of the range. The no-duplicates option is implemented so it validates your range up front: if you ask for more unique numbers than the range can actually supply, you get a clear error instead of a silently wrong result.
Is this random number generator truly random?
Numbers are generated with the Web Crypto API's crypto.getRandomValues, a cryptographically secure random source built into your browser, using rejection sampling so every value in your range is equally likely — unlike naive uses of Math.random, which can be slightly biased.
Can I generate numbers without duplicates?
Yes. Check "No duplicate numbers" and each generated value will be unique. If your requested count is larger than the number of possible values in your range, the tool shows an error instead of guessing.
What's the maximum range or count supported?
You can generate between 1 and 100 numbers per click, and the minimum and maximum can be any whole numbers, as long as minimum is less than or equal to maximum.