rand static method

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

Create random number between low and high

Implementation

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