randomBool top-level property

IO<bool> randomBool

Generates a random boolean value.

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

Implementation

IO<bool> get randomBool => IO(() => Random().nextBool());