Generate random sample from a Bernoulli distribution
Generate random sample from a Bernoulli distribution
rbernoulli(n, p = 0.5)
n |
Number of samples |
p |
Probability of getting |
A logical vector
rbernoulli(10) rbernoulli(100, 0.1)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.