Generates a random number between the range [min, max), where min is inclusive and max is exclusive.
[min, max)
min
max
If min is greater than max.
Generates a random number between the range
[min, max)
, wheremin
is inclusive andmax
is exclusive.