randomDouble function
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;
}