free.sprng {rsprng}R Documentation

Free memory used by SPRNG

Description

free.sprng frees the memory allocated to save the PRNG states by SPRNG and calls RNGkind to restore R's default RNG.

Usage

free.sprng ()

Details

SPRNG allocates some memory to save the state of the underlying RNG and the memory must be explicitly freed.

Value

Return current PRNG state and NULL if there were no active PRNG stream.

Author(s)

Na (Michael) Li nali@umn.edu

References

SPRNG: Scalable Parallel Random Number Generator Library Web Page. http://sprng.cs.fsu.edu/

See Also

init.sprng, pack.sprng

Examples

init.sprng (1, 0, seed = 231, kind = "PMLCG")
runif (10)
free.sprng ()

[Package rsprng version 1.0 Index]