pack.sprng {rsprng} | R Documentation |
pack.sprng
returns the state of current active PRNG
stream as a vector of integers.
pack.sprng ()
Return the current PRNG state as an integer vector or NULL
if
there is no active PRNG stream.
Na (Michael) Li nali@umn.edu
SPRNG: Scalable Parallel Random Number Generator Library Web Page. http://sprng.cs.fsu.edu/
init.sprng (1, 0, kind = "LCG") runif (10) saved <- pack.sprng () a1 <- runif (10) unpack.sprng (saved) a2 <- runif (10) all (a1 == a2) free.sprng ()