randomDouble function

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

Returns a random floating point number from min to max.

Implementation

double randomDouble(double min, double max) {
  if (min > max) {
    throw RangeError('max must be greater than min');
  }
  return _random.nextDouble() * (max - min) + min;
}