Random Number Generator
Generate random numbers between any range. Pick single or multiple numbers, with or without repeats. Press Space to generate instantly.
Keyboard shortcut: Space bar
How to Use
Frequently Asked Questions
Is this truly random?
This uses JavaScript's Math.random(), a pseudorandom number generator (PRNG). It passes statistical tests for randomness and is fine for games, decisions, and simulations. For cryptographic security, use the Password Generator which uses crypto.getRandomValues().
How do I generate a random number in a range?
Set min and max to your desired boundaries and click Generate. The formula used is Math.floor(Math.random() * (max - min + 1)) + min, which gives an integer where both endpoints are equally likely.
Can I generate lottery numbers?
Yes. Click the "Lottery (1-49, pick 6)" quick chip to auto-fill the settings, then click Generate. The no-repeats option ensures all 6 numbers are unique. Adjust the range for your local lottery format.
What is the difference between random and pseudorandom?
True random numbers come from physical processes like atmospheric noise. Pseudorandom numbers use mathematical algorithms starting from a seed value. Both produce statistically uniform distributions. For everyday use, pseudorandom is perfectly adequate.
How do I pick a random number between 1 and 10?
Set min to 1, max to 10, count to 1, and click Generate or press Space. Each number from 1 to 10 has an equal 10% probability of being selected.