random function
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> random() => IO(() => Random().nextDouble());