getDouble static method

double getDouble(
  1. double min,
  2. double max
)

Gets a random double between min and max.

Implementation

static double getDouble(double min, double max) {
  return min + random.nextDouble() * (max - min);
}