nextBool method

bool nextBool()

Generates a random boolean explicitly modeling a coin-flip.

Maps conceptually to C++ std::bernoulli_distribution.

Implementation

bool nextBool() {
  return _generator.nextBool();
}