Random number generator
Generate random integers within a range. Options for unique values, sorted output and multiple draws. Uses cryptographic randomness.
- Free, no sign-up
- No data stored
- Reviewed 2026-01-15
Your details
Results
- Sum
- 355
- Mean
- 59.17
- Minimum
- 17
- Maximum
- 96
Comma separated
84, 49, 19, 17, 90, 96
One per line
84
49
19
17
90
96
Csprng note
About the Random Number Generator
Generate one or more random integers between any minimum and maximum value. The generator uses PHP's cryptographically secure random_int() function. Enable "unique" to prevent duplicates (like a lottery draw).
How to use the Random Number Generator
- Set the minimum and maximum values.
- Choose how many numbers to generate.
- Optionally require unique values.
- Optionally sort the output.
- Click calculate to generate.
Frequently asked questions
Is this truly random?
It uses random_int() backed by the operating system's CSPRNG. It is suitable for any non-gambling random selection.
Can I generate lottery numbers?
Yes. Set min=1, max to the pool size, count to the draw size, and tick "unique". Note: this is for fun — official draws use certified hardware.
What if I need more numbers than the range allows?
With "unique" enabled, you cannot generate more numbers than the range size. The tool will warn you.