CMD + K

r-rngsetseed

Community

A function setVectorSeed() is provided. Its argument is a numeric vector of an arbitrary nonzero length, whose components have integer values from [0, 2^32-1]. The input vector is transformed using AES (Advanced Encryption Standard) algorithm into an initial state of Mersenne-Twister random number generator. The function provides a better alternative to the R base function set.seed(), if the input vector is a single integer. Initializing a stream of random numbers with a vector is a convenient way to obtain several streams, each of which is identified by several integer indices.

Installation

To install this package, run one of the following:

Conda
$conda install r_test::r-rngsetseed

Usage Tracking

0.3_2
1 / 8 versions selected
Downloads (Last 6 months): 0

About

Summary

A function setVectorSeed() is provided. Its argument is a numeric vector of an arbitrary nonzero length, whose components have integer values from [0, 2^32-1]. The input vector is transformed using AES (Advanced Encryption Standard) algorithm into an initial state of Mersenne-Twister random number generator. The function provides a better alternative to the R base function set.seed(), if the input vector is a single integer. Initializing a stream of random numbers with a vector is a convenient way to obtain several streams, each of which is identified by several integer indices.

Last Updated

Dec 9, 2019 at 20:11

License

GPL-3

Total Downloads

3

Supported Platforms

linux-64
win-64
macOS-64