Espacios de nombres
Variantes

srand

De cppreference.com
Definido en el archivo de encabezado <stdlib.h>
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.

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.

Ejemplo

Ver también

genera un número pseudo-aleatorio
Original:
generates a pseudo-random number
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función) [editar]