boolean function

bool boolean()

It returns a random boolean value.

Returns: A random boolean value.

Implementation

bool boolean() {
  return Random().nextBool();
}