randInt static method

double randInt(
  1. double low,
  2. double high
)

Create random number between low and high

Implementation

static double randInt(double  low, double high ) {
  double rand = math.Random().nextDouble();
  return low + (rand * ( high - low + 1 ) );
}