Random generation for the Bernoulli distribution with parameter prob.
Source
Based on the rbinom function, with size = 1.
See also
Distributions for other standard distributions, including dbinom for the binomial.
Random generation for the Bernoulli distribution with parameter prob.
Based on the rbinom function, with size = 1.
Distributions for other standard distributions, including dbinom for the binomial.