Random Number Generator

Generate cryptographically secure random numbers in any range. Set minimum and maximum values, choose how many numbers to generate, allow or prevent duplicates, and sort the output. Uses the Web Crypto API for true randomness. No signup required.

Frequently Asked Questions

Are the generated numbers truly random?
Yes. Numbers are generated using the Web Crypto API's crypto.getRandomValues(), which provides cryptographically secure randomness suitable for security applications, not just statistical randomness.
Can I generate multiple random numbers at once?
Yes. Set the count to any number up to 1,000. The output can be sorted in ascending or descending order.
Can I allow or prevent duplicate numbers?
Yes. Toggle 'allow duplicates' on or off. When off, each generated number is unique within the range.
What is this tool useful for?
Statistical sampling, lottery number selection, random password seeds, game mechanics, random assignment in research, and any application requiring unbiased number selection.
What is the maximum range I can use?
Any range within JavaScript's safe integer limits — from -9,007,199,254,740,991 to 9,007,199,254,740,991.