Returns a random boolean from a Bernoulli distribution with success probability p . @param p the probability of returning true @return true with probability p and false with probability p @throws IllegalArgumentException unless {@code p >= 0.
(double p)