Espacios de nombres
Variantes
Acciones

std::mersenne_twister_engine

De cppreference.com
< cpp‎ | numeric‎ | random

 
 
Numéricos biblioteca
Funciones matemáticas comunes
Floating-point medio ambiente
Los números complejos
Matrices numéricas
Pseudo-aleatoria de generación de números
En tiempo de compilación aritmética racional (C++11)
Genéricos operaciones numéricas
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iota(C++11)
accumulate
inner_product
adjacent_difference
partial_sum
 
Pseudo-aleatoria de generación de números
Motores y adaptadores de motor
Original:
Engines and engine adaptors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
linear_congruential_engine(C++11)
mersenne_twister_engine(C++11)
subtract_with_carry_engine(C++11)
discard_block_engine(C++11)
independent_bits_engine(C++11)
shuffle_order_engine(C++11)
Generadores
Original:
Generators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
random_device(C++11)
Distribuciones
Original:
Distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Distribuciones uniformes
Original:
Uniform distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
uniform_int_distribution(C++11)
uniform_real_distribution(C++11)
generate_canonical(C++11)
Bernoulli distribuciones
Original:
Bernoulli distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
bernoulli_distribution(C++11)
binomial_distribution(C++11)
negative_binomial_distribution(C++11)
geometric_distribution(C++11)
Poisson distribuciones
Original:
Poisson distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
poisson_distribution(C++11)
exponential_distribution(C++11)
gamma_distribution(C++11)
weibull_distribution(C++11)
extreme_value_distribution(C++11)
Distribuciones normales
Original:
Normal distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
normal_distribution(C++11)
lognormal_distribution(C++11)
chi_squared_distribution(C++11)
cauchy_distribution(C++11)
fisher_f_distribution(C++11)
student_t_distribution(C++11)
Distribuciones de muestreo
Original:
Sampling distributions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
discrete_distribution(C++11)
piecewise_constant_distribution(C++11)
piecewise_linear_distribution(C++11)
Secuencias de semillas
Original:
Seed Sequences
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
seed_seq(C++11)
C biblioteca
Original:
C library
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
rand
srand
RAND_MAX
 
std::mersenne_twister_engine
Las funciones miembro
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
mersenne_twister_engine::mersenne_twister_engine
mersenne_twister_engine::seed
Generación
Original:
Generation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
mersenne_twister_engine::operator()
mersenne_twister_engine::discard
Características
Original:
Characteristics
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
mersenne_twister_engine::min
mersenne_twister_engine::max
Terceros funciones
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator==
operator!=
operator<<
operator>>
 
Defined in header <random>
template<

    class UIntType,
    size_t w, size_t n, size_t m, size_t r,
    UIntType a, size_t u, UIntType d, size_t s,
    UIntType b, size_t t,
    UIntType c, size_t l, UIntType f

> class mersenne_twister_engine;
(desde C++11)

Contenido

[editar] Tipos de miembros

Miembro de tipo
Original:
Member type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
result_type
El tipo integral generada por el motor. Los resultados son indefinido si esto no es un tipo entero sin signo .
Original:
The integral type generated by the engine. Results are undefined if this is not an unsigned integral type.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Las funciones miembro

Construcción y Siembra
Original:
Construction and Seeding
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
construye el motor
Original:
constructs the engine
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público función) [edit]
establece el estado actual del motor
Original:
sets the current state of the engine
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público función) [edit]
Generación
Original:
Generation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
avances del estado del motor y devuelve el valor generado
Original:
advances the engine's state and returns the generated value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público función) [edit]
avances del estado del motor en una cantidad especificada
Original:
advances the engine's state by a specified amount
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro público función) [edit]
Características
Original:
Characteristics
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[estático]
se obtiene el valor más pequeño posible en el rango de salida
Original:
gets the smallest possible value in the output range
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(miembro estático público función) [edit]
[estático]
gets the largest possible value in the output range
(miembro estático público función) [edit]

[editar] Terceros funciones

compara los estados internos de los dos motores de números pseudo-aleatorios
Original:
compares the internal states of two pseudo-random number engines
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]
realiza flujo de entrada y de salida en el motor de número pseudo-aleatorio
Original:
performs stream input and output on pseudo-random number engine
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [edit]

[editar] Objetos miembros

constexpr size_t word_size
[estático]

(público miembro constante estática)
constexpr size_t state_size
[estático]

(público miembro constante estática)
constexpr size_t shift_size
[estático]

(público miembro constante estática)
constexpr size_t mask_bits
[estático]

(público miembro constante estática)
constexpr UIntType xor_mask
[estático]

(público miembro constante estática)
constexpr size_t tempering_u
[estático]

(público miembro constante estática)
constexpr UIntType tempering_d
[estático]

(público miembro constante estática)
constexpr size_t tempering_s
[estático]

(público miembro constante estática)
constexpr UIntType tempering_b
[estático]

(público miembro constante estática)
constexpr size_t tempering_t
[estático]

(público miembro constante estática)
constexpr UIntType tempering_c
[estático]

(público miembro constante estática)
constexpr size_t tempering_l
[estático]

(público miembro constante estática)
constexpr UIntType initialization_multiplier
[estático]

(público miembro constante estática)
constexpr UIntType default_seed
[estático]

(público miembro constante estática)