Random number generator
Generate a random number with 2 to 10 digits.
How to use
- Choose the number of digits.
- Press Generate.
- Press Copy to copy the number.
When to use it
Use it when you need a number with a set number of digits, such as a temporary code or booking number, numbers for raffle tickets, or numbers for testing.
Which numbers can appear
You only get numbers with exactly the digits you choose: 2 digits gives 10–99 (90 possibilities), 4 digits gives 1000–9999 (9,000) and 6 digits gives 100000–999999 (900,000). Each extra digit multiplies the possibilities by ten, so choose more digits if repeats would be a problem.
Using it for something important
Numbers are made with your browser's secure random generator and are never sent to a server. Still, a number-only code has relatively few possibilities, so for something like an account password, use the random password generator to mix in letters and symbols.
FAQ
Can the number start with 0?
No. The first digit is 1–9 so the number always has exactly the digits you chose. For example, 4 digits gives 1000–9999.
Is it fair?
Each digit is chosen with your browser's secure random generator, so every number is equally likely.