STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Modules

Modules

 Uniform Distributions
 
 Normal Distributions
 
 Bernoulli Distributions
 
 Poisson Distributions
 

Detailed Description

The type of the generated random value.

Constructs an explicitly seeded % subtract_with_carry_engine random number generator.

Constructs a subtract_with_carry_engine random number engine seeded from the seed sequence __q.

Parameters
__qthe seed sequence.

Seeds the initial state $x_0$ of the random number generator.

N1688[4.19] modifies this as follows. If __value == 0, sets value to 19780503. In any case, with a linear congruential generator lcg(i) having parameters $ m_{lcg} = 2147483563, a_{lcg} = 40014, c_{lcg} = 0, and lcg(0) = value $, sets $ x_{-r} \dots x_{-1} $ to $ lcg(1) \bmod m \dots lcg(r) \bmod m $ respectively. If $ x_{-1} = 0 $ set carry to 1, otherwise sets carry to 0.

Seeds the initial state $x_0$ of the % subtract_with_carry_engine random number generator.

Gets the inclusive minimum value of the range of random integers returned by this generator.

Gets the inclusive maximum value of the range of random integers returned by this generator.

Discard a sequence of random numbers.

Gets the next random number in the sequence.

Compares two % subtract_with_carry_engine random number generator objects of the same type for equality.

Parameters
__lhsA % subtract_with_carry_engine random number generator object.
__rhsAnother % subtract_with_carry_engine random number generator object.
Returns
true if the infinite sequences of generated values would be equal, false otherwise.

Inserts the current state of a % subtract_with_carry_engine random number generator engine __x into the output stream __os.

Parameters
__osAn output stream.
__xA % subtract_with_carry_engine random number generator engine.
Returns
The output stream with the state of __x inserted or in an error state.

Extracts the current state of a % subtract_with_carry_engine random number generator engine __x from the input stream __is.

Parameters
__isAn input stream.
__xA % subtract_with_carry_engine random number generator engine.
Returns
The input stream with the state of __x extracted or in an error state.

Compares two % subtract_with_carry_engine random number generator objects of the same type for inequality.

Parameters
__lhsA % subtract_with_carry_engine random number generator object.
__rhsAnother % subtract_with_carry_engine random number generator object.
Returns
true if the infinite sequences of generated values would be different, false otherwise.

Produces random numbers from some base engine by discarding blocks of data.

0 <= __r <= __p

The type of the generated random value.

Constructs a default discard_block_engine engine.

The underlying engine is default constructed as well.

Copy constructs a discard_block_engine engine.

Copies an existing base class random number generator.

Parameters
__rngAn existing (base class) engine object.

Move constructs a discard_block_engine engine.

Copies an existing base class random number generator.

Parameters
__rngAn existing (base class) engine object.

Seed constructs a discard_block_engine engine.

Constructs the underlying generator engine seeded with __s.

Parameters
__sA seed value for the base class engine.

Generator construct a discard_block_engine engine.

Parameters
__qA seed sequence.

Reseeds the discard_block_engine object with the default seed for the underlying base class generator engine.

Reseeds the discard_block_engine object with the default seed for the underlying base class generator engine.

Reseeds the discard_block_engine object with the given seed sequence.

Parameters
__qA seed generator function.

Gets a const reference to the underlying generator engine object.

Gets the minimum value in the generated random number range.

Gets the maximum value in the generated random number range.

Discard a sequence of random numbers.

Gets the next value in the generated random number sequence.

Compares two discard_block_engine random number generator objects of the same type for equality.

Parameters
__lhsA discard_block_engine random number generator object.
__rhsAnother discard_block_engine random number generator object.
Returns
true if the infinite sequences of generated values would be equal, false otherwise.

Inserts the current state of a discard_block_engine random number generator engine __x into the output stream __os.

Parameters
__osAn output stream.
__xA discard_block_engine random number generator engine.
Returns
The output stream with the state of __x inserted or in an error state.

Extracts the current state of a % subtract_with_carry_engine random number generator engine __x from the input stream __is.

Parameters
__isAn input stream.
__xA discard_block_engine random number generator engine.
Returns
The input stream with the state of __x extracted or in an error state.

Compares two discard_block_engine random number generator objects of the same type for inequality.

Parameters
__lhsA discard_block_engine random number generator object.
__rhsAnother discard_block_engine random number generator object.
Returns
true if the infinite sequences of generated values would be different, false otherwise.

Produces random numbers by combining random numbers from some base engine to produce random numbers with a specifies number of bits __w.

The type of the generated random value.

Constructs a default independent_bits_engine engine.

The underlying engine is default constructed as well.

Copy constructs a independent_bits_engine engine.

Copies an existing base class random number generator.

Parameters
__rngAn existing (base class) engine object.

Move constructs a independent_bits_engine engine.

Copies an existing base class random number generator.

Parameters
__rngAn existing (base class) engine object.

Seed constructs a independent_bits_engine engine.

Constructs the underlying generator engine seeded with __s.

Parameters
__sA seed value for the base class engine.

Generator construct a independent_bits_engine engine.

Parameters
__qA seed sequence.

Reseeds the independent_bits_engine object with the default seed for the underlying base class generator engine.

Reseeds the independent_bits_engine object with the default seed for the underlying base class generator engine.

Reseeds the independent_bits_engine object with the given seed sequence.

Parameters
__qA seed generator function.

Gets a const reference to the underlying generator engine object.

Gets the minimum value in the generated random number range.

Gets the maximum value in the generated random number range.

Discard a sequence of random numbers.

Gets the next value in the generated random number sequence.

Compares two independent_bits_engine random number generator objects of the same type for equality.

Parameters
__lhsA independent_bits_engine random number generator object.
__rhsAnother independent_bits_engine random number generator object.
Returns
true if the infinite sequences of generated values would be equal, false otherwise.

Extracts the current state of a % subtract_with_carry_engine random number generator engine __x from the input stream __is.

Parameters
__isAn input stream.
__xA independent_bits_engine random number generator engine.
Returns
The input stream with the state of __x extracted or in an error state.

Compares two independent_bits_engine random number generator objects of the same type for inequality.

Parameters
__lhsA independent_bits_engine random number generator object.
__rhsAnother independent_bits_engine random number generator object.
Returns
true if the infinite sequences of generated values would be different, false otherwise.

Inserts the current state of a independent_bits_engine random number generator engine __x into the output stream __os.

Parameters
__osAn output stream.
__xA independent_bits_engine random number generator engine.
Returns
The output stream with the state of __x inserted or in an error state.

Produces random numbers by combining random numbers from some base engine to produce random numbers with a specifies number of bits __w.

The type of the generated random value.

Constructs a default shuffle_order_engine engine.

The underlying engine is default constructed as well.

Copy constructs a shuffle_order_engine engine.

Copies an existing base class random number generator.

Parameters
__rngAn existing (base class) engine object.

Move constructs a shuffle_order_engine engine.

Copies an existing base class random number generator.

Parameters
__rngAn existing (base class) engine object.

Seed constructs a shuffle_order_engine engine.

Constructs the underlying generator engine seeded with __s.

Parameters
__sA seed value for the base class engine.

Generator construct a shuffle_order_engine engine.

Parameters
__qA seed sequence.

Reseeds the shuffle_order_engine object with the default seed for the underlying base class generator engine.

Reseeds the shuffle_order_engine object with the default seed for the underlying base class generator engine.

Reseeds the shuffle_order_engine object with the given seed sequence.

Parameters
__qA seed generator function.

Gets a const reference to the underlying generator engine object.

Gets the minimum value in the generated random number range.

Gets the maximum value in the generated random number range.

Discard a sequence of random numbers.

Gets the next value in the generated random number sequence.

Compares two shuffle_order_engine random number generator objects of the same type for equality.

Parameters
__lhsA shuffle_order_engine random number generator object.
__rhsAnother shuffle_order_engine random number generator object.
Returns
true if the infinite sequences of generated values would be equal, false otherwise.

Inserts the current state of a shuffle_order_engine random number generator engine __x into the output stream __os.

 @param __os An output stream.
 @param __x  A %shuffle_order_engine random number generator engine.

 @returns The output stream with the state of @p __x inserted or in
 an error state.

Extracts the current state of a % subtract_with_carry_engine random number generator engine __x from the input stream __is.

Parameters
__isAn input stream.
__xA shuffle_order_engine random number generator engine.
Returns
The input stream with the state of __x extracted or in an error state.

Compares two shuffle_order_engine random number generator objects of the same type for inequality.

Parameters
__lhsA shuffle_order_engine random number generator object.
__rhsAnother shuffle_order_engine random number generator object.
Returns
true if the infinite sequences of generated values would be different, false otherwise.

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

An alternative LCR (Lehmer Generator function).

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.

An alternative Mersenne Twister.

A standard interface to a platform-specific non-deterministic random number generator (if any are available).

The type of the generated random value.