getRandomDecimalValue function

double getRandomDecimalValue(
  1. double minValue,
  2. double maxValue
)

Implementation

double getRandomDecimalValue(double minValue, double maxValue) {
  var random = Random();
  return minValue + random.nextDouble() * (maxValue - minValue);
}