Diferencia entre revisiones de «cpp/numeric/random/srand»
De cppreference.com
(link) |
(Translated from the English version using Google Translate) |
||
Línea 1: | Línea 1: | ||
− | {{title|srand}} | + | {{title|srand}} |
− | + | ||
+ | |||
+ | |||
+ | |||
− | + | seed | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | {{}} | ||
+ | valor de la semilla | ||
+ | |||
− | + | = | |
− | + | ()() | |
− | + | ||
− | + | ||
− | + | ||
− | === | + | ====== |
− | + | ||
+ | |||
+ | |||
+ | |||
− | + | = | |
− | + | ||
− | + | ||
− | + | / | |
− | + | ||
− | + | [[:cpp/numeric/random/srand]] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
[[fr:cpp/numeric/random/srand]] | [[fr:cpp/numeric/random/srand]] | ||
[[ja:cpp/numeric/random/srand]] | [[ja:cpp/numeric/random/srand]] | ||
[[ru:cpp/numeric/random/srand]] | [[ru:cpp/numeric/random/srand]] | ||
[[zh:cpp/numeric/random/srand]] | [[zh:cpp/numeric/random/srand]] |
Revisión de 15:48 22 oct 2012
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.
You can help to correct and verify the translation. Click here for instructions.
Contenido |
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. |
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.
You can help to correct and verify the translation. Click here for instructions.
Ejemplo
Esta sección está incompleta Razón: sin ejemplo |
Ver también
C documentation for srand
|