Learn R Programming

rngtools

R package - Utility functions for working with Random Number Generators

This package contains a set of functions for working with Random Number Generators (RNGs). In particular, it defines a generic S4 framework for getting/setting the current RNG, or RNG data that are embedded into objects for reproducibility.

Notably, convenient default methods greatly facilitate the way current RNG settings can be changed.

Copy Link

Version

Install

install.packages('rngtools')

Monthly Downloads

28,353

Version

1.5.2

License

GPL-3

Maintainer

Last Published

September 20th, 2021

Functions in rngtools (1.5.2)

checkRNG

Checking RNG Differences in Unit Tests
getRNG

Getting/Setting RNGs
RNGstr

Formatting RNG Information
.setRNG

Setting RNG Seeds
getRNG1

Extracting RNG Settings from Computation Result Objects
RNGseed

Directly Getting or Setting the RNG Seed
rngtools

Utility functions for working with Random Number Generators
.getRNG

Getting RNG Seeds
RNGseq

Generate Sequence of Random Streams
rng.equal

Comparing RNG Settings