Description Usage Arguments Value
Random number generation from the Bernoulli distribution.
1 | rbern(n, p = 0.5)
|
n |
number of draws |
p |
Bernoulli parameter |
Returns a vector of length n
with each entry drawn
iid. from Bern(p).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.