Random Number Generator
Generate unbiased random integers with your browser's crypto API.
Enter integer minimum and maximum values, choose how many numbers to generate, and enable Unique or Sort as needed.
The tool draws values with rejection sampling to avoid modulo bias, using crypto.getRandomValues from your browser.
Press Generate to create a fresh set, or Copy to grab the results as a comma-separated list.
Frequently asked questions
What is modulo bias?
It happens when the random range is not evenly divisible by the output range, making some numbers slightly more likely. Rejection sampling fixes this.
Can I generate negative numbers?
Yes. Min and max can be any integers as long as min is less than or equal to max.
Is this cryptographically secure?
It uses the browser's Web Crypto API, which is suitable for keys, simulations, and lotteries that require strong randomness.