Compartilhar via


<random> Members

Reference

Classes

bernoulli_distribution Class

Generates a Bernoulli distribution.

binomial_distribution Class

Generates a binomial distribution.

cauchy_distribution Class

Generates a Cauchy distribution.

chi_squared_distribution Class

Generates a chi-squared distribution.

discard_block Class

Generates a random sequence by discarding values returned by its base engine. Retained for TR1 compatibility.

discard_block_engine Class

Generates a random sequence by discarding values returned by its base engine.

discrete_distribution Class

Generates a discrete integer distribution.

exponential_distribution Class

Generates an exponential distribution.

extreme_value_distribution Class

Generates an extreme value distribution.

fisher_f_distribution Class

Generates a Fisher F distribution.

gamma_distribution Class

Generates a gamma distribution.

geometric_distribution Class

Generates a geometric distribution.

independent_bits_engine Class

Generates a random sequence with a specified number of bits by repacking bits from the values returned by its base engine.

linear_congruential Class

Generates a random sequence by using the linear congruential algorithm. Retained for TR1 compatibility.

linear_congruential_engine Class

Generates a random sequence by using the linear congruential algorithm.

lognormal_distribution Class

Generates a log-normal distribution.

mersenne_twister Class

Generates a random sequence by using the Mersenne twister algorithm. Retained for TR1 compatibility.

mersenne_twister_engine Class

Generates a random sequence by using the Mersenne twister algorithm.

negative_binomial_distribution Class

Generates a negative binomial distribution.

normal_distribution Class

Generates a normal distribution.

piecewise_constant_distribution Class

Generates a piecewise constant distribution.

piecewise_linear_distribution Class

Generates a piecewise linear distribution.

poisson_distribution Class

Generates a Poisson distribution.

random_device Class

Generates a random sequence by using an external device.

seed_seq Class

Stores a vector of unsigned integer values that can supply a randomized seed for a random-number engine.

shuffle_order_engine Class

Generates a random sequence by reordering the values returned from its base engine.

student_t_distribution Class

Generates a Student T distribution.

subtract_with_carry Class

Generates a random sequence by using the subtract with carry algorithm. Retained for TR1 compatibility.

subtract_with_carry_01 Class

Generates a random sequence by using the floating-point subtract with carry algorithm. Retained for TR1 compatibility.

subtract_with_carry_engine Class

Generates a random sequence by using the subtract with carry algorithm.

uniform_int Class

Generates a uniform integer distribution. Retained for TR1 compatibility.

uniform_int_distribution Class

Generates a uniform integer distribution.

uniform_real Class

Generates a uniform floating-point distribution. Retained for TR1 compatibility.

uniform_real_distribution Class

Generates a uniform floating-point distribution.

variate_generator Class

Wraps an engine and a distribution.

weibull_distribution Class

Generates a Weibull distribution.

xor_combine Class

Generates a combined distribution.

Typedefs

default_random_engine TypeDef

Type definition for the default engine.

knuth_b TypeDef

Type definition for a shuffle order engine.

minstd_rand0 TypeDef

Type definition for a linear congruential engine.

minstd_rand TypeDef

Type definition for a linear congruential engine.

mt19937 TypeDef

Type definition for a Mersenne twister engine.

mt19937_64 TypeDef

Type definition for a Mersenne twister engine.

ranlux_base_01 TypeDef

Type definition for a floating-point subtract with carry engine.

ranlux3 TypeDef

Type definition for a subtract with carry engine.

ranlux3_01 TypeDef

Type definition for a floating-point subtract with carry engine.

ranlux4 TypeDef

Type definition for a subtract with carry engine.

ranlux4_01 TypeDef

Type definition for a floating-point subtract with carry engine.

ranlux24 TypeDef

Type definition for a discard block engine.

ranlux24_base TypeDef

Type definition for a subtract with carry engine.

ranlux48 TypeDef

Type definition for a discard block engine.

ranlux48_base TypeDef

Type definition for a subtract with carry engine.

ranlux64_base_01 TypeDef

Type definition for a floating-point subtract with carry engine.

Operators

operator== <random>

Tests if the engine on the left side of the operator is equal to engine on the right side.

operator!= <random>

Tests if the engine on the left side of the operator is not equal to engine on the right side.

operator<< <random>

Writes state information to the stream.

operator>> <random>

Extracts state information from a stream.

Functions

generate_canonical

Returns a floating-point value from a random sequence.