Espacios de nombres
Variantes
Acciones

Pseudo-random number generation

De cppreference.com
< cpp‎ | numeric
 
 
 
Generación de números pseudoaleatorios
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.
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.
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.
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.
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.
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.
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.
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.
(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.
 
La biblioteca de números aleatorios proporciona un conjunto de motores generadores (tanto los generadores de números pseudo-aleatorios, que generan secuencias de enteros con una distribución uniforme y verdaderos generadores de números aleatorios si está disponible) y un conjunto de clases aleatorias de números de distribución que convierten la distribución uniforme de la motores de los generadores en diferentes distribuciones estadísticas .
Original:
The random number library provides a set of generator engines (both pseudo-random number generators, which generate integer sequences with a uniform distribution, and true random number generators if available) and a set of random number distribution classes which convert the uniform distribution of the generator engines into various statistical distributions.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Todos los motores de los generadores puede ser sembrados específicamente, de serie, y deserializar para su uso con simuladores repetibles .
Original:
All of the generator engines may be specifically seeded, serialized, and deserialized for use with repeatable simulators.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Contenido

[editar] Motores de números aleatorios

Motores de números aleatorios genera números pseudo-aleatorios a partir de datos de semillas como fuente de entropía. Varias clases diferentes de pseudo-aleatorios algoritmos de generación de números se implementan como plantillas que se pueden personalizar .
Original:
Random number engines generate pseudo-random numbers using seed data as entropy source. Several different classes of pseudo-random number generation algorithms are implemented as templates that can be customized.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La elección de qué motor usar implica una serie de ventajas y desventajas: el motor de congruencia lineal es relativamente rápido y tiene un requisito de almacenamiento muy pequeña para el estado. Los retardados generadores de Fibonacci son muy rápido, incluso en los procesadores sin avanzados conjuntos de instrucciones aritméticas, a expensas de almacenamiento de estado mayor y características espectrales veces menos deseables. El tornado de Mersenne es más lento y tiene mayores necesidades de almacenamiento del Estado, pero con los parámetros adecuados tiene la más larga secuencia que no se repite con las características espectrales más deseables (para una definición dada de deseable) .
Original:
The choice of which engine to use involves a number of tradeoffs: the linear congruential engine is moderately fast and has a very small storage requirement for state. The lagged Fibonacci generators are very fast even on processors without advanced arithmetic instruction sets, at the expense of greater state storage and sometimes less desirable spectral characteristics. The Mersenne twister is slower and has greater state storage requirements but with the right parameters has the longest non-repeating sequence with the most desirable spectral characteristics (for a given definition of desirable).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definido en el archivo de encabezado <random>
implementa algoritmo congruencia lineal
Original:
implements congruencia lineal algorithm
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
implementa algoritmo Mersenne twister
Original:
implements Mersenne twister algorithm
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
implementos resta con acarreo (a quedado Fibonacci) algoritmo
Original:
implements subtract with carry (a quedado Fibonacci) algorithm
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)

[editar] Azar adaptadores número de motor

Azar adaptadores del motor número generar números pseudo-aleatorios usando otro motor de números al azar como fuente de entropía. Se utilizan generalmente para alterar las características espectrales del motor subyacente .
Original:
Random number engine adaptors generate pseudo-random numbers using another random number engine as entropy source. They are generally used to alter the spectral characteristics of the underlying engine.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definido en el archivo de encabezado <random>
descarta una salida de un motor de número aleatorio
Original:
discards some output of a 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.

(plantilla de clase)
los paquetes de la salida de un motor de número aleatorio en bloques de un número especificado de bits
Original:
packs the output of a random number engine into blocks of specified number of bits
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
proporciona la salida de un motor de número aleatorio en orden diferente
Original:
delivers the output of a random number engine in different order
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)

[editar] Predefinidas generadores de números aleatorios

Varios algoritmos específicos populares están predefinidos .
Original:
Several specific popular algorithms are predefined.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definido en el archivo de encabezado <random>
Tipo
Original:
Type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
minstd_rand0 std::linear_congruential_engine<uint_fast32_t, 16807, 0, 2147483647>
minstd_rand std::linear_congruential_engine<uint_fast32_t, 48271, 0, 2147483647>
mt19937 std::mersenne_twister_engine<uint_fast32_t, 32, 624, 397, 31,

                             0x9908b0df, 11,
                             0xffffffff, 7,
                             0x9d2c5680, 15,
                             0xefc60000, 18, 1812433253>

mt19937_64 std::mersenne_twister_engine<uint_fast64_t, 64, 312, 156, 31,

                             0xb5026f5aa96619e9, 29,
                             0x5555555555555555, 17,
                             0x71d67fffeda60000, 37,
                             0xfff7eee000000000, 43, 6364136223846793005>

ranlux24_base std::subtract_with_carry_engine<uint_fast32_t, 24, 10, 24>
ranlux48_base std::subtract_with_carry_engine<uint_fast64_t, 48, 5, 12>
ranlux24 std::discard_block_engine<ranlux24_base, 223, 23>
ranlux48 std::discard_block_engine<ranlux48_base, 389, 11>
knuth_b std::shuffle_order_engine<minstd_rand0, 256>
default_random_engine
' Definido por la implantación
Original:
implementation-defined
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
no determinista generador de números aleatorios utilizando hardware de código entropía
Original:
non-deterministic random number generator using hardware entropy source
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(clase)

[editar] Distribuciones de números aleatorios

Distribuciones de números aleatorios son post-proceso de la salida de un motor de números aleatorios o adaptadores de tal manera que la salida resultante se distribuye sobre una función definida de densidad de probabilidad estadística .
Original:
Random number distributions are post-process the output of an random number engine or adaptors in such a way that resulting output is distributed on a defined statistical probability density function.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definido en el archivo de encabezado <random>
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.
produce valores enteros uniformemente distribuidos a través de un rango
Original:
produces integer values evenly distributed across a range
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
Produce valores reales distribuidos uniformemente en un rango.
(plantilla de clase) [editar]
Distribuye uniformemente los valores reales de precisión dada en el rango [01).
(plantilla de función) [editar]
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.
produce valores bool en un Bernoulli distribución .
Original:
produces bool values on a Bernoulli distribución.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(clase)
produce valores enteros en un distribución binomial .
Original:
produces integer values on a distribución binomial.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
produce valores enteros en un distribución binomial negativa .
Original:
produces integer values on a distribución binomial negativa.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
produce valores enteros en un distribución geométrica .
Original:
produces integer values on a distribución geométrica.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
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.
produce valores enteros en un distribución de Poisson .
Original:
produces integer values on a distribución de Poisson.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
produce valores reales en una distribución exponencial .
Original:
produces real values on an distribución exponencial.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
produce valores reales en una gamma distribución .
Original:
produces real values on an gamma distribución.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
produce valores reales en una Distribución Weibull .
Original:
produces real values on a Distribución Weibull.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
produce valores reales en una distribución de valor extremo .
Original:
produces real values on an distribución de valor extremo.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
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.
produce valores reales en una estándar normal (gaussiana) de distribución .
Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
produce valores reales en una distribución lognormal .
Original:
produces real values on a distribución lognormal.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
produce valores reales en una chi-cuadrado de distribución .
Original:
produces real values on a chi-cuadrado de distribución.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
produce valores reales en una Distribución de Cauchy .
Original:
produces real values on a Distribución de Cauchy.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
produce valores reales en una Fisher F-distribución .
Original:
produces real values on a Fisher F-distribución.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
produce valores reales en una La t de Student distribución .
Original:
produces real values on a La t de Student distribución.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
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.
produce enteros aleatorios de una distribución discreta .
Original:
produces random integers on a discrete distribution.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
produce valores reales distribuidos en subintervalos constantes .
Original:
produces real values distributed on constant subintervals.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)
produce valores reales distribuidos en subintervalos definidos .
Original:
produces real values distributed on defined subintervals.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase)

[editar] Predefinidas generadores de semillas de secuencia

Definido en el archivo de encabezado <random>
(C++11)
de uso general, eliminando el sesgo revueltos generador de secuencias de semillas
Original:
general-purpose bias-eliminating scrambled seed sequence generator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(clase)

[editar] C biblioteca

Definido en el archivo de encabezado <cstdlib>
Genera un número pseudoaleatorio.
(función) [editar]
Inicializa un generador de números pseudoaleatorios.
(función) [editar]
El valor máximo posible generado por std::rand.
(constante de macro) [editar]