How to generate random numbers
- Set the minimum and maximum (both included).
- Choose how many numbers you need — from 1 up to 10,000.
- Tick No duplicates to draw unique numbers (like a raffle), and Sort to list them in order.
- Press Generate. Previous draws stay in the history list.
How random is it?
Many simple generators use Math.random(), which is fine for games but predictable in theory. This tool uses your browser’s cryptographically secure random number generator (crypto.getRandomValues) with rejection sampling, so every number in your range is exactly equally likely — no number is favored, even with unusual ranges.
Common uses
- Raffles and giveaways: number the entries and draw unique winners.
- Classroom: pick a student number, generate math practice problems.
- Games: decide turn order, pick a random level or card.
- Sampling: choose random rows or records for audits, surveys and quality checks.
- Lottery-style picks: e.g. 5 unique numbers from 1–69. Remember that no generator can predict or improve lottery odds.
Probability basics
With a range of 1–100, each number has a 1% chance on every draw, and past results don’t change future ones. Seeing the same number twice in a row is not a sign of bias — with replacement, repeats are expected surprisingly often (the “birthday paradox”). If you don’t want repeats, tick No duplicates.
Prefer something visual? Try the spin the wheel picker or roll some dice.
Frequently asked questions
Is this random number generator truly random?
It uses the browser’s cryptographically secure generator, which is unpredictable and unbiased for all practical purposes.
Are the minimum and maximum included?
Yes. A range of 1 to 10 can return both 1 and 10.
How do I generate numbers without repeats?
Tick “No duplicates”. The count can’t be larger than the size of the range.
Can I generate negative numbers?
Yes. Set a negative minimum, such as −50 to 50.