powered by
Basic implementation of the linear congruential random number generator.
rlincong(n, seed, par)
a vector of n uniform random numbers
numeric: number of variates to generate.
numeric: initial seed.
an integer vector containing parameters for the generator: a, cc, m.
x <- rlincong(1000, 6976, c(171, 0, 30269)) summary(x)
Run the code above in your browser using DataLab