Changed slightly the lower and upper limits of the uniform distribution from which the random value is generated.