Random Number Generator
Set a min and max, choose how many numbers you need, and generate instantly — with optional uniqueness and sorting.
Generate random numbers with a custom range, quantity, and unique-value option. Free online RNG for lotteries, raffles, and samples.
Open interactive Random Number Generator
How to use Random Number Generator
- Set the minimum and maximum.
- Choose quantity and whether values must be unique.
- Press Generate, then copy the result.
How it works
Numbers are drawn uniformly from your inclusive range using the browser’s cryptographic random generator. Unique mode samples without replacement within that range.
Common use cases
- Lottery-style picks
- Raffle tickets
- Random samples
- Classroom number games
- PIN-style digit sets
Frequently asked questions
Can I avoid duplicates?
Turn on “Unique values only” — quantity cannot exceed the range size.
What ranges are supported?
Any whole numbers up to about ±1,000,000,000.
Related tools
- 🎲 Dice Roller — Roll virtual dice
- 🪙 Flip a Coin — Heads or tails?
- 🙋 Random Name Picker — Pick a random name
- 🎨 Random Color Generator — Discover beautiful colors