a random number generator
the minimum value
the maximum value
random integer in [min,max)
See Implementation