BroHelp.me

Random Number Generator

Generates a random integer between the entered minimum and maximum, inclusive.







How This Converter Works

Generates a uniformly selected integer within inclusive, safe-integer minimum and maximum bounds. Blank, fractional, unsafe, or reversed bounds are rejected.

Formula or rule

For integer range = max - min + 1, result = floor(Math.random() * range) + min. The integer range must also be safe.

Example

Input
Minimum -2; maximum 2
Calculation
One possible random value selects an integer in the inclusive range -2 through 2.
Result
1 (one possible result)
© BroHelp.me 2026 - 2026 is provided without warranty of any kind.