d method

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

Implementation

double d(double min, double max) {
  return nextDouble() * (max - min) + min;
}