nextDouble method

double nextDouble()

Generates a double in the range [0, 1), with 53 bits of precision.

It takes two 32-bit draws, combined into a 53-bit value.

Implementation

@pragma('vm:prefer-inline')
double nextDouble() => ((nextInt() & 0x1FFFFF) * _pow32 + nextInt()) / _pow53;