randomFromA2B static method

double randomFromA2B(
  1. num a,
  2. num b
)

Implementation

static double randomFromA2B(num a, num b) {
  var result = random() * (b - a) + a;
  return result;
}