Generate random bernoulli (non-homogeneous binomial) variates
rbern.Rd
Returns the sum of bernoulli variables with different probabilities.
Examples
rbern(5, c(.3, .6, .1))
#> [1] 0 2 1 1 1
rbern.Rd
Returns the sum of bernoulli variables with different probabilities.
rbern(5, c(.3, .6, .1))
#> [1] 0 2 1 1 1