Random Number Generator
Generate one or more random numbers within any range. Use quick presets for dice, lottery and more, or configure your own settings.
Quick presets
Options
Features
Your number
-
between 1 and 100
0 numbers generated
between 1 and 100
Statistics
Sum
-
Mean
-
Median
-
Min
-
Max
-
Range
-
History
No history yet - generate some numbers.
Set your range, generate, export. Done.
Presets fill the most common ranges in one click. Custom ranges handle everything else.
-
1
Set your range manually or use a preset: Dice Roll (1 to 6), UK Lottery (1 to 59), Coin Flip (0 to 1), or any custom min and max you need.
-
2
Drag the slider to generate 1 to 100 numbers at once. Toggle duplicates on or off, and sort results ascending if needed for clean output.
-
3
Enable statistics (sum, mean, median, range) for data work, or the spin animation for prize draws. The history panel tracks your last 10 results automatically.
-
4
Copy as CSV, line-separated text, or JSON. Results paste straight into Excel, Python, or any data pipeline without reformatting.
What people use this for
A random number generator is simpler than it looks. Here are the most common reasons people reach for one.
Games and prizes
Fair dice rolls, lottery number picks, giveaway winner selection, and tabletop RPG encounter tables. The spin animation adds a satisfying drum-roll moment.
Statistics and research
Random sampling for surveys, simulation seeds, and statistics homework. Export as CSV and import directly into Excel or R.
Development and testing
Generate test IDs, mock data, and unique identifiers in bulk. JSON export makes it easy to paste into code without writing a script.
Is it truly random? And does it matter?
Most people asking this question actually want to know one thing: is it fair?
How it works
This tool uses JavaScript's Math.random() seeded by your device's system entropy. Each call produces a statistically unpredictable result. When you disable duplicates, results are drawn using Fisher-Yates shuffling for a perfectly uniform distribution.
When it is good enough
For games, prize draws, sampling, and most development tasks, this is more than sufficient. The one case it is not suitable for is cryptographic security. Do not use this to generate passwords or encryption keys.
Frequently Asked Questions
Is this truly random?
The tool uses JavaScript's Math.random() seeded by your device's system entropy, which produces statistically unpredictable results for general use. It is not a cryptographically secure random number generator, so it is not suitable for security-critical applications such as generating passwords or encryption keys.
What happens if I disable duplicates but request more numbers than the range allows?
The quantity is automatically capped to the size of the range. For example, if your range is 1 to 5 and you request 10 unique numbers, you will receive all 5 unique values in that range rather than an error.
Can I use decimal (floating point) numbers?
The generator produces integers only. As a workaround, generate numbers in a scaled-up range (e.g., 1 to 1000) and divide the results by 10 in your spreadsheet or code to get one decimal place of precision.