nextDouble static method

double nextDouble()

Returns a random double in the range [0, 1).

Implementation

static double nextDouble() {
  final rand = math.Random();
  return rand.nextDouble();
}