powered by
Basic implementation of the multiply-with-carry generator.
rMWC(n, par)
a vector of n uniform random numbers
numeric: number of variates to generate.
an integer vector containing parameters for the generator: X, C, A, B.
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)
Run the code above in your browser using DataLab