randomBool function
Returns either true
or false
in a most random fashion.
Implementation
bool randomBool() {
return _random.nextDouble() < 0.5;
}
Returns either true
or false
in a most random fashion.
bool randomBool() {
return _random.nextDouble() < 0.5;
}