binom | R Documentation |
Generate n pseudo random numbers from a binomial distribution.
binom(n = 1, p = 0.5, k = 5, seed = as.integer(Sys.time()))
n |
the number of pseudo random binomial variants to generate. Defaults to 1. |
p |
probability of success. Defaults to 0.5. |
k |
Number of n independent Bernoulli trials. Defaults to 5. |
seed |
Seed for pseudo random number generating algorithm. Defaults to a integer generated from the system time |
vector of binomial random variants of length n
binom(n=1e5, p= 0.2, k=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.