Deprecated: $wgMWOAuthSharedUserIDs=false is deprecated, set $wgMWOAuthSharedUserIDs=true, $wgMWOAuthSharedUserSource='local' instead [Called from MediaWiki\HookContainer\HookContainer::run in /var/www/html/w/includes/HookContainer/HookContainer.php at line 135] in /var/www/html/w/includes/Debug/MWDebug.php on line 372
rngSetSeed - MaRDI portal

rngSetSeed

From MaRDI portal
Software:157671



CRANrngSetSeedMaRDI QIDQ157671

Seeding the Default RNG with a Numeric Vector

Petr Savicky

Last update: 19 September 2023

Copyright license: GNU General Public License, version 3.0

Software version identifier: 0.3-2, 0.1-2, 0.2-3, 0.3-1, 0.3-3

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.





This page was built for software: rngSetSeed