Random Number Generator
Generate random whole numbers or decimals in a range, with optional no-repeat lists.
Your number
–
Set a minimum and maximum, choose how many numbers you want and generate them. You can allow or forbid repeats, choose whole numbers or decimals, and sort the list.
Numbers come from your browser's cryptographic random source, so they are unbiased and unpredictable enough for games, raffles and sampling.
How random number generator works
Whole numbers are drawn with rejection sampling, which avoids the slight bias that a simple modulo would introduce. With “no repeats” selected, values are drawn until enough distinct ones have been found, so you cannot ask for more unique numbers than the range holds.
Both ends of the range are included. A range of 1 to 6 works like a die.
The formula
Whole number in [min, max] = min + random integer in [0, max − min]
Distinct values available = max − min + 1Worked example: a raffle and a dice roll
Six unique numbers from 1 to 49: set count to 6, range 1 to 49, and turn repeats off.
A dice roll: min 1, max 6, count 1. Ten rolls: count 10 with repeats allowed.
When to use this tool
- Picking raffle or giveaway winners.
- Rolling dice or choosing turns in a game.
- Sampling rows or items for a quick check.
- Choosing between options by chance.
Common mistakes to avoid
- Asking for more unique numbers than the range contains.
- Reading patterns into a short random sequence. Streaks and repeats are normal.
- Using an online generator where an audited draw is legally required, such as a regulated lottery.
Frequently asked questions
- Are the numbers truly random?
- They come from the browser's cryptographic generator, which is designed to be unpredictable. They are suitable for everyday uses, but this tool is not an audited system for regulated draws.
- Can I generate numbers without repeats?
- Yes. Turn off “allow repeats” and the tool returns distinct values.
- Does the range include the maximum?
- Yes. Both the minimum and maximum can be returned.
- Can I generate decimals?
- Yes. Choose decimals and set the number of decimal places.
Learn more
Related tools
- Password GeneratorCreate strong random passwords in your browser, with adjustable length and character sets.
- Word CounterCount words, characters, sentences and paragraphs, with reading and speaking time.
- QR Code GeneratorCreate a QR code for a link or text, then download it as PNG or SVG.
- Countdown TimerSet hours, minutes and seconds, and get an alert when the time is up.
- Image CompressorShrink JPEG, PNG and WebP images in your browser. Choose quality and size, and download the result.
- Character CounterCount characters with and without spaces, and check text against common length limits.
Results are for information only and are not financial, legal or medical advice. The calculation logic is covered by automated tests, and examples on this page are worked out and re-checked before publishing. Spotted a mistake? Tell us.