Function rBernoulli

int rBernoulli(RGen) (
  double P = 0.5,
  ref RGen gen = rndGen
);