What “random” means here
A random number is one you cannot predict. Computers are built to be exact, so true randomness is hard for them. Simple programs use a formula that only looks random. This tool asks your browser’s secure random source (the Web Crypto API) where it is available, the same kind of randomness used for security keys.
Two ways to set it up
- Range: give a minimum and a maximum, for example 1 to 100. Every whole number in the range, including both ends, is equally likely.
- Digit length: ask for numbers with an exact number of digits, such as 6-digit codes. They never start with 0.
You can also ask for many numbers at once.
The filters
You can limit the results to even or odd numbers. The no repeated digits option makes sure no digit appears twice inside one number, so 1234 is allowed but 1223 is not. There are only ten digits, so a number can have at most 10 digits when this is on.
Random does not mean evenly spread
People expect random numbers to look “mixed”, but real randomness has streaks. Rolling a 1 to 6 and seeing 4 three times in a row is normal. Also, a number that has not appeared for a while is not “due”. Each draw is independent. That mistaken feeling is called the gambler’s fallacy.
Where it helps
- Picking a winner for a giveaway or a lucky draw.
- Choosing a fair sample, or a random order for a presentation.
- Making practice questions, test data or game values.
For passwords, use a password generator instead, since passwords need a mix of letters and symbols, not just digits.