Random Number Generator
Generate a random whole number between a minimum and maximum value.
Calculate
Enter your values below.
Result
Random number
0
Formula used
A random whole number is generated uniformly between your chosen minimum and maximum (inclusive), using JavaScript's random number generator.
Example: Between 1 and 100 → any whole number in that range, with equal probability.
How to use this calculator
- Enter Minimum, Maximum.
- Press Calculate to see your result instantly.
FAQ
Frequently asked questions
Is this truly random?
It uses your browser's built-in pseudo-random number generator — suitable for everyday use like games or drawings, but not for cryptographic purposes.
Can minimum and maximum be the same?
Yes, the result will simply be that number.
Can I generate negative numbers?
Yes, enter a negative minimum and/or maximum.
Does pressing Calculate again give a new number?
Yes, each calculation generates a fresh random result.
