src/training/pango/stringrenderer.cpp
static bool RandBool(const double prob, TRand *rand) {
  if (prob == 1.0) {
    return true;
  }
  if (prob == 0.0) {
    return false;
  }
  return rand->UnsignedRand(1.0) < prob;
}
// Returns true with probability 'prob'.
Returns true with probability 'prob'.
Returns true with probability ' prob ' .
static bool RandBool(const double prob, TRand *rand) {
  if (prob == 1.0) {
    return true;
  }
  if (prob == 0.0) {
    return false;
  }
  return rand->UnsignedRand(1.0) < prob;
}
static bool RandBool ( const double prob , TRand * rand ) { if ( prob == 1.0 ) { return true ; } if ( prob == 0.0 ) { return false ; } return rand -> UnsignedRand ( 1.0 ) < prob ; }
Returns true with probability 'prob'.
Returns true with probability ' prob ' .