This random number generator produces random integers or decimals within a range, with optional inclusion of endpoints.
Statistics
Random Number Generator
Generate random numbers within a range.
Calculator
About this calculator
Formula notes
A uniformly distributed random value is selected between min and max; integer mode rounds or samples according to the configured bounds.
Worked examples
- Example: a random integer from 1 to 10 could return any of 1, 2, ..., 10.
- A classroom raffle from ticket numbers 101 to 200 could use this generator to pick any ticket in that range.
How to use it
- Set the minimum and maximum values.
- Choose integer or decimal mode and trailing decimals if needed.
- Generate a random result and repeat as needed.
Frequently asked questions
Can it generate negative numbers?
Yes. Enter a negative minimum and the generator will use that full range.
Is this cryptographically secure for passwords?
No. This is intended for everyday random selections, not security-critical random values.
Limits and interpretation
- This generator is not cryptographically secure and should not be used for passwords or random security tokens.
- For a truly fair draw, ensure the range and endpoint setting match your tickets exactly.