rMWC | R Documentation |
Basic implementation of the multiply-with-carry generator.
rMWC(n, par)
n |
numeric: number of variates to generate. |
par |
an integer vector containing parameters for the generator: X, C, A, B. |
a vector of n uniform random numbers
Marsaglia, G. (2003) Random Number Generators. Journal of Modern Applied Statistical Methods. 2(1):2.
x <- rMWC(58, c(5, 3, 6, 10))
summary(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.