About the Random Number Generator
Use it to pick winners, assign teams, sample data or make decisions. You can generate whole numbers or decimals to two places, set the range and decide whether the same number may appear more than once.
The generator is a standard pseudo-random number generator seeded when you press Calculate. It is suitable for games, classroom activities and sampling, but not for security keys, passwords or gambling, where a cryptographically secure source is required.
How to Use the Random Number Generator
- Enter the minimum and maximum.
- Choose how many numbers and the type.
- Choose whether repeats are allowed.
- Press Calculate to draw a new set.
Formula and Method
Uniform integer
min + ⌊random × (max − min + 1)⌋
Each value is equally likely.
Worked Example
Pick five numbers
Input: Range 1 to 100, 5 numbers
- Press Calculate for a new draw
Result: Five numbers between 1 and 100.
Frequently Asked Questions
Is it truly random?
It is pseudo-random: statistically random but generated by an algorithm.
Can I draw lottery numbers?
Yes, choose whole numbers with no repeats, though results do not improve your odds.
Why do I see the same numbers on load?
The first display uses a fixed seed so the page is consistent; press Calculate for new numbers.
Is it safe for passwords?
No. Use a password generator that relies on a cryptographic source.
Related Calculators
Sources and Further Reading
Accuracy and Scope
Results use standard IEEE-754 double-precision arithmetic and are rounded for display. For exam, engineering or research work, verify critical values with a second method. See our full disclaimer.