Set (Normal) Random Number Generator and Seed

SetRNG provides utilities to help set and record the setting of the seed and the uniform and normal generators used when a random experiment is run. The utilities can be used in other functions that do random experiments to simplify recording and/or setting all the necessary information for reproducibility. See the vignette and reference manual for examples.


Changes in setRNG version 2013.9-1

o adjusted .Rbuildignore to exclude S/ directory.

Changes in setRNG version 2011.11-1

o updated maintainer email address.

Changes in setRNG version 2009.11-1

o setRNG sources migrated to distr project on R-forge.

o Standardized NEWS format for new function news().

o The result of setRNG is now returned with invisible() except in the case it is called with no arguments. This avoids printout of large seeds.

Changes in setRNG version 2008.3-1

o as.integer(seed) used explicitely to avoid warning caused when an integer stored as a double was used to set the seed. This should cause no changes other than eliminating the warning message.

Changes in setRNG version 2006.4-1

o added setRNG-package.Rd overview.

o added namespaces

Changes in setRNG version 2004.4-1

o setRNG is now maintained as a separate package

o Older NEWS is in the dse NEWS file.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


2013.9-1 by Paul Gilbert, 7 years ago

Browse source code at

Authors: Paul Gilbert <[email protected]>

Documentation:   PDF Manual  

Task views: Probability Distributions

GPL-2 | file LICENSE license

Imported by EvalEst, dse, optimr.

Depended on by distrEllipse, distrSim, distrTEst.

Suggested by BB, SQUAREM, momentuHMM, optimx, orsk, turboEM.

See at CRAN