Random Number Generator
Generate random numbers in any range, unique or repeating.
For draws and lotteries. Only available for whole numbers.
What does Random Number Generator do?
Generate random integers or decimals within a range you set, with an option to force unique values for draws and lotteries. Randomness comes from the browser’s cryptographic source, so results are genuinely unpredictable.
How to Use Random Number Generator
- 1Set the rangeMinimum and maximum, inclusive.
- 2Choose how manyOne, or a whole batch.
- 3Switch on unique if neededFor draws where no number can repeat.
- 4GenerateCopy or download the results.
Key Features
- Any minimum and maximum, including negative ranges
- Integers or decimals with configurable precision
- Unique-values mode with no repeats, for draws and lotteries
- Generate up to 1,000 numbers at once
- Cryptographically secure and free of modulo bias
- Sort, copy or download the results
Frequently Asked Questions
Is this truly random?
It uses crypto.getRandomValues, which draws on the operating system’s entropy pool. That is cryptographically secure pseudo-randomness — unpredictable in practice, and the standard for anything where fairness matters.
What is modulo bias and why does it matter?
Naively taking a random value modulo your range makes low numbers slightly more likely. This generator uses rejection sampling — discarding values in the final partial bucket — so every outcome is exactly equally likely.
Can I use this for a prize draw?
Yes, and the unique-values mode is designed for it. For a formal or regulated draw, follow whatever auditing your rules require — a browser tool cannot provide a verifiable audit trail.
Why does unique mode limit how many I can request?
Because you cannot draw more unique numbers than the range contains. Asking for 100 unique values between 1 and 50 is impossible, and the tool says so rather than looping forever.
Values come from crypto.getRandomValues, your browser’s cryptographically secure random source, and are never transmitted or logged. Copy anything you need before closing the tab — it cannot be recovered.
Related Tools
Random String Generator
Generate random strings, IDs and codes in bulk.
Password Generator
Create strong random passwords and memorable passphrases.
UUID Generator
Generate v4 and v7 UUIDs in bulk, cryptographically random.
Average Calculator
Mean, sum and count from any list of numbers.