| unpack.sprng {rsprng} | R Documentation |
unpack.sprng unpacks a saved PRNG state and replace the current
active PRNG state with the new one.
unpack.sprng (rngstate)
rngstate |
an integer vector representing PRNG state (should be
returned by either pack.sprng,
spawn.sprng, spawn.new.sprng) |
Return the states of the old PRNG stream if there is one and return
NULL if not.
Na (Michael) Li lina@u.washington.edu
SPRNG: Scalable Parallel Random Number Generator Library Web Page. http://sprng.cs.fsu.edu/
pack.sprng, spawn.sprng,
spawn.new.sprng
init.sprng (1, 0, seed = 1132, kind = "LCG64") runif (5) rng.saved <- pack.sprng () runif (5) unpack.sprng (rng.saved) runif (5) free.sprng ()