Name : perl-Math-Random-MT-Auto
| |
Version : 6.23
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.75
| Date : 2024-08-28 23:49:49
|
Group : Development/Libraries/Perl
| Source RPM : perl-Math-Random-MT-Auto-6.23-1.75.src.rpm
|
Size : 0.13 MB
| |
Packager : (none)
| |
Summary : Auto-seeded Mersenne Twister PRNGs
|
Description :
The Mersenne Twister is a fast pseudorandom number generator (PRNG) that is capable of providing large volumes (> 10^6004) of \"high quality\" pseudorandom data to applications that may exhaust available \"truly\" random data sources or system-provided PRNGs such as rand.
This module provides PRNGs that are based on the Mersenne Twister. There is a functional interface to a single, standalone PRNG, and an OO interface (based on the inside-out object model as implemented by the Object::InsideOut module) for generating multiple PRNG objects. The PRNGs are normally self-seeding, automatically acquiring a (19968-bit) random seed from user-selectable sources. (_Manual_ seeding is optionally available.)
* Random Number Deviates
In addition to integer and floating-point uniformly-distributed random number deviates (i.e., \"irand\" and \"rand\"), this module implements the following non-uniform deviates as found in _Numerical Recipes in C_:
* * Gaussian (normal)
* * Exponential
* * Erlang (gamma of integer order)
* * Poisson
* * Binomial
* Shuffling
This module also provides a subroutine/method for shuffling data based on the Fisher-Yates shuffling algorithm.
* Support for 64-bit Integers
If Perl has been compiled to support 64-bit integers (do perl -V and look for \'use64bitint=define\'), then this module will use a 64-bit-integer version of the Mersenne Twister, thus providing 64-bit random integers and 52-bit random doubles. The size of integers returned by \"irand\", and used by \"get_seed\" and \"set_seed\" will be sized accordingly.
Programmatically, the size of Perl\'s integers can be determined using the \'Config\' module:
use Config; print(\"Integers are $Config{\'uvsize\'} bytes in length\ \");
The code for this module has been optimized for speed. Under Cygwin, it\'s 2.5 times faster than Math::Random::MT, and under Solaris, it\'s more than four times faster. (Math::Random::MT fails to build under Windows.)
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-M/openSUSE_Tumbleweed/x86_64 |