Random Number Generator
Set a range and pull a random number from it.
Minimum must be less than or equal to maximum.
How to generate a random number
- Enter the lowest number you want in Minimum and the highest in Maximum. Both ends are included, so 1 to 10 can give 1, 10 or anything between.
- Press Generate.
- Your last five results are listed below the main number, so you can keep track of a series of draws.
Whole numbers only, and negative numbers work too — for example −50 to 50.
How the number is picked
Every whole number in your range has the same chance of being chosen. Picking a number between 1 and 6 behaves exactly like rolling a fair die; picking between 1 and 100 is like drawing one of 100 numbered tickets and putting it back afterwards.
Because the ticket is "put back", the same number can come up twice in a row. That's expected behaviour for true randomness, not a fault. If you need a set of numbers with no repeats — such as a raffle draw — note down each winner and redraw if a duplicate appears, or put the entries in the Name Picker.
The generator uses your browser's standard pseudo-random number generator, which is ideal for games, classroom activities and everyday choices. It is not designed for cryptography — for anything security-related, such as passwords or keys, use the Password Generator, which uses your browser's cryptographically secure source instead.
Ideas for using it
- Raffles and giveaways: number each entry, then draw a number in the range
- Picking a random page, question or exercise number to study
- Choosing who goes first: everyone guesses, and the closest guess wins
- Creating test data or sample values for spreadsheets and code
- Party games such as "guess the number" between 1 and 1,000
Frequently asked questions
Can it pick the same number twice?
Yes. Each draw is independent, so repeats are possible. With a range of 1 to 10, there's a 10% chance any given draw matches the previous one.
Is there a maximum range?
You can use very large numbers, but for the most even results keep both values within a few trillion either side of zero.
Can I generate decimals?
Not directly. To get one decimal place between 0 and 10, generate 0 to 100 and divide the result by 10.