Returns a value uniformly sampled between min and max.
min
max
double sample(Random random) => $1 + ($2 - $1) * random.nextDouble();