zrnorm | R Documentation |
Pseudo random numbers drawn from one of three distributions are offered, as proposed by Marsaglia and Tsang (2000, <doi:10.18637/jss.v005.i08>) and improved by Leong et al (2005, <doi:10.18637/jss.v012.i07>.
zrnorm(n)
zrexp(n)
zrunif(n)
zsetseed(s)
n |
The size of the returned vector |
s |
The chosen seed |
A vector of pseudo random-number generated draws from either the Normal, Exponential or Uniform distribution, as selected.
<doi:10.18637/jss.v005.i08> <doi:10.18637/jss.v012.i07>
zsetseed(123)
zrnorm(3)
round(summary(zrunif(1e6)), 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.