rand method

double rand()

Returns a random double in [0.0, 1.0).

Implementation

double rand() => random.nextDouble();