Generate random numbers in any range
Need a number between 1 and 10, a lottery-style set of unique numbers or a hundred random values for a test? This random number generator gives you whole numbers in any range you choose, one at a time or in bulk, with or without repeats.
It's free, works offline once loaded and uses the same secure randomness your browser relies on for encryption.
How to use the Random Number Generator
- Set the minimum and maximum. Both ends are included, so 1 to 6 can give 1 and 6.
- Choose whether numbers must be unique (no repeats) or can repeat.
- Set how many numbers you want, up to 100 at once.
- Press Generate, then Copy to paste the results anywhere.
Ideas and ways to use the Random Number Generator
- Pick a random number between 1 and 100 for a guessing game.
- Draw unique numbers for a raffle, lottery practice or bingo-style game.
- Choose a random page, question or exercise number in class.
- Create sample data or random IDs for testing.
- Replace a die when you need an unusual range, like 1 to 37.
Why the Random Number Generator is fair
Every whole number in your range has exactly the same probability. We use crypto.getRandomValues with rejection sampling, which avoids the small bias that simple “random × range” methods can create. When you choose unique numbers, each set is drawn without replacement, just like pulling balls from a bag.