sample method

double sample(
  1. Random random
)

Returns a value uniformly sampled between min and max.

Implementation

double sample(Random random) => $1 + ($2 - $1) * random.nextDouble();