Random Number Generator
Random integer = floor(random × (max−min+1)) + minRandom real in [0,1) scaled to [1,101) and floored
Free online tool
Enter minimum and maximum values to generate a random integer.
Instant calculation
Enter minimum and maximum values to generate a random integer.
Your numbers stay in this browser. Nothing is uploaded or saved.
Three clear steps
Type the lowest possible number.
Type the highest possible number.
Calculate to produce a random number in the range.
The formula
Generates a uniformly distributed random integer inclusive of both min and max.
Random integer = floor(random × (max−min+1)) + minRandom real in [0,1) scaled to [1,101) and floored
Check the method
Each example follows the same formula used by the calculator.
Random real in [0,1) scaled to [1,101) and flooredRandom integer 1–100Common questions
The Random Number Generator helps you generate a random number within a specified range. Enter your values and select Calculate to get an instant result.
Generates a uniformly distributed random integer inclusive of both min and max.
Example: Random number between 1 and 100? — Random integer 1–100.
No. All calculations run locally in your browser. Your inputs and results are never uploaded, stored or shared with anyone.
Yes. The Random Number Generator is completely free. No account, sign-up or payment is required. It works on mobile, tablet and desktop.
Continue calculating