Espacios de nombres
Variantes
Acciones

Diferencia entre revisiones de «cpp/numeric/random/srand»

De cppreference.com
< cpp‎ | numeric‎ | random
m (r2.7.3) (Bot Añadido: de, en, it, pt Eliminado: es)
m (Use {{lc}}. Update links. Various fixes.)
 
Línea 9: Línea 9:
  
 
===Parámetros===
 
===Parámetros===
{{param list begin}}
+
{{begin}}
{{param list item | seed |{{tr| el valor de la semilla| the seed value}}}}
+
{{| seed |{{tr| el valor de la semilla| the seed value}}}}
{{param list end}}
+
{{end}}
  
 
===Valor de retorno===
 
===Valor de retorno===
Línea 23: Línea 23:
  
 
===Ver también===
 
===Ver también===
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/numeric/random/dcl list rand}}
+
{{| cpp/numeric/random/rand}}
{{dcl list see c | c/numeric/random/srand}}
+
{{see c | c/numeric/random/srand}}
{{dcl list end}}
+
{{end}}
  
 
[[de:cpp/numeric/random/srand]]
 
[[de:cpp/numeric/random/srand]]

Última revisión de 00:10 2 jul 2013

 
 
 
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.
srand
 
Definido en el archivo de encabezado <cstdlib>
void srand( unsigned seed );
Inicializa el generador de números aleatorios para generar valores para rand() con el valor de inicialización seed .
Original:
Initializes the built-in random number generator used to generate values for rand() with the seed value seed.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Contenido

[editar] Parámetros

seed -
el valor de la semilla
Original:
the seed value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Valor de retorno

(Ninguno)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Ejemplo

[editar] Ver también

Genera un número pseudoaleatorio.
(función) [editar]