rlincong | R Documentation |
Basic implementation of the linear congruential random number generator.
rlincong(n, seed, par)
n |
numeric: number of variates to generate. |
seed |
numeric: initial seed. |
par |
an integer vector containing parameters for the generator: a, cc, m. |
a vector of n uniform random numbers
x <- rlincong(1000, 6976, c(171, 0, 30269))
summary(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.