random static method

double random()

Returns a pseudo-random double n, where 0 <= n < 1. Using the math.Random class.

Implementation

@pragma("vm:prefer-inline")
static double random() {
  return _rnd.nextDouble();
}