Random Number Generators(3)

NAME
Random Number Generators -

  Classes
class std::tr1::discard_block< _UniformRandomNumberGenerator, __p, __r >
class std::tr1::linear_congruential< _UIntType, __a, __c, __m >
A model of a linear congruential random number generator.
class std::tr1::random_device
class std::tr1::xor_combine< _UniformRandomNumberGenerator1, __s1, _UniformRandomNumberGenerator2, __s2 >

  Typedefs
typedef linear_congruential< unsigned long, 48271, 0, 2147483647 > std::tr1::minstd_rand
typedef linear_congruential< unsigned long, 16807, 0, 2147483647 > std::tr1::minstd_rand0
typedef mersenne_twister< unsigned long, 32, 624, 397, 31, 0x9908b0dful, 11, 7, 0x9d2c5680ul, 15, 0xefc60000ul, 18 > std::tr1::mt19937
typedef discard_block< subtract_with_carry< unsigned long,(1UL<< 24), 10, 24 >, 223, 24 > std::tr1::ranlux3
typedef discard_block< subtract_with_carry_01< float, 24, 10, 24 >, 223, 24 > std::tr1::ranlux3_01
typedef discard_block< subtract_with_carry< unsigned long,(1UL<< 24), 10, 24 >, 389, 24 > std::tr1::ranlux4
typedef discard_block< subtract_with_carry_01< float, 24, 10, 24 >, 389, 24 > std::tr1::ranlux4_01
typedef subtract_with_carry_01< double, 48, 5, 12 > std::tr1::ranlux64_base_01
typedef subtract_with_carry_01< float, 24, 10, 24 > std::tr1::ranlux_base_01

Detailed Description

These classes define objects which provide random or pseudorandom numbers, either from a discrete or a continuous interval. The random number generator supplied as a part of this library are all uniform random number generators which provide a sequence of random number uniformly distributed over their range.

A number generator is a function object with an operator() that takes zero arguments and returns a number.

A compliant random number generator must satisfy the following requirements. To be documented. Random Number Generator Requirements

Typedef Documentation

  typedef linear_congruential<unsigned long, 48271, 0, 2147483647> std::tr1::minstd_rand

An alternative LCR (Lehmer Generator function) .

Definition at line 518 of file tr1/random.h.

  typedef linear_congruential<unsigned long, 16807, 0, 2147483647> std::tr1::minstd_rand0

The classic Minimum Standard rand0 of Lewis, Goodman, and Miller.

Definition at line 513 of file tr1/random.h.

  typedef mersenne_twister< unsigned long, 32, 624, 397, 31, 0x9908b0dful, 11, 7, 0x9d2c5680ul, 15, 0xefc60000ul, 18 > std::tr1::mt19937

The classic Mersenne Twister.

Reference: M. Matsumoto and T. Nishimura, 'Mersenne Twister: A 623-Dimensionally Equidistributed Uniform Pseudo-Random Number Generator', ACM Transactions on Modeling and Computer Simulation, Vol. 8, No. 1, January 1998, pp 3-30.

Definition at line 700 of file tr1/random.h.

  typedef discard_block< subtract_with_carry<unsigned long, (1UL << 24), 10, 24>, 223, 24 > std::tr1::ranlux3

James's luxury-level-3 integer adaptation of Luescher's generator.

Definition at line 1263 of file tr1/random.h.

  typedef discard_block< subtract_with_carry<unsigned long, (1UL << 24), 10, 24>, 389, 24 > std::tr1::ranlux4

James's luxury-level-4 integer adaptation of Luescher's generator.

Definition at line 1272 of file tr1/random.h.

Author

Generated automatically by Doxygen for libstdc++ from the source code.