nextBool method

  1. @override
bool nextBool()
override

消耗一个小数,小于一半时返回 true。

Implementation

@override
bool nextBool() => nextDouble() < 0.5;