Random Number Generator
Generate a random whole number within any range you choose. Set a minimum and maximum, then generate as many numbers as you need.
Click Generate to get started
Recommended Settings
Pro Tips
- •The range is inclusive on both ends - setting 1 and 6 can produce either 1 or 6, just like a die roll
- •Numbers are generated using the Web Crypto API's random number source, which is more unpredictable than JavaScript's default Math.random()
- •Swap the minimum and maximum values to generate negative numbers, like -50 to 50
- •Use the recent picks list to keep track of numbers you've already drawn during a session
Most Popular
Most users generate numbers between 1 and 100, or 1 and 6 for simulating a die roll
When to Use This Tool
Pick a random winning number or ticket from a defined range.
Simulate a die roll or any other randomized game element.
Draw a random number for statistical sampling or quick decision-making.
Generate random numeric input to test how an application handles a range of values.
How It Works
Take the minimum and maximum values you set
Generate a cryptographically random integer within that inclusive range using the Web Crypto API
Display the result and keep a short history of your recent picks
100% Private
Files never leave your device. All processing happens locally in your browser.
Lightning Fast
Powered by Web Crypto API (crypto.getRandomValues) for optimal performance on modern browsers.
Open Source
Built with verified, open-source libraries. Fully transparent.
Frequently Asked Questions
Is the range inclusive?
Yes, both the minimum and maximum values themselves can be generated, not just the numbers strictly between them.
How random is this really?
It uses the Web Crypto API (crypto.getRandomValues) rather than Math.random(), which produces higher-quality randomness suitable for things like raffles or games.
Can I generate decimals instead of whole numbers?
This tool generates whole numbers only. For decimals, use the Random Decimal Generator instead.
Is my data sent to a server?
No. The random number is generated entirely in your browser. Nothing is transmitted anywhere.
What happens if I enter a minimum larger than the maximum?
The generator won't produce a result until the minimum is less than or equal to the maximum.