randFloat static method

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

Implementation

static double randFloat(double low, double high) {
  return low + Math.random() * (high - low);
}