random top-level property

IO<double> random

Generates a non-negative random floating point value uniformly distributed in the range from 0.0, inclusive, to 1.0, exclusive.

IO wrapper around dart Random().nextDouble().

Implementation

IO<double> get random => IO(() => Random().nextDouble());