randFloat static method

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

Implementation

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