nextBoolean method Null safety

bool nextBoolean()

Generates a random boolean value.

Returns a random boolean.