R/distributions.R
rbern.Rd
Alias of rbinom() for a single trial (size = 1).
rbinom()
size = 1
rbern(prob, n = length(prob))
Vector of probabilities.
Numbers of sample, defaults to the length of prob.
prob