Random number generator
MathGenerate one or more random integers within a range using cryptographically secure randomness.
Your results
Generate random integers within a min and max range.
How randomness is generated
We use the browser's crypto.getRandomValues when available for cryptographically secure random numbers. Otherwise we fall back to Math.random for non-critical uses.
Is it really random?
When crypto is available, yes, the result is suitable for draws and passwords. Math.random is fine for games but should not be used for security-sensitive purposes.
Frequently asked questions
Answers to the most common questions about this tool.
How is this result calculated?
It applies the mathematical rule shown by this calculator to your inputs.
Can the result be greater than 100%?
Yes, when the relationship between the entered values is larger than the reference value.
What is this calculation useful for?
Use it for quick checks, study, and everyday calculations.
Which values can I enter?
Enter valid numbers in the fields and check any required format.
What happens with zero or invalid values?
The tool prevents or flags operations that are not mathematically defined.
Sources and methodology
Methodology: Random numbers
Generates integers with crypto.getRandomValues when available; otherwise uses Math.random.
The fallback must not be used for cryptography or regulated draws; modulo bias is a technical limitation.
References
Last reviewed
July 15, 2026