Espaços nominais
Variantes
Acções

srand

Da cppreference.com
< c‎ | numeric‎ | random

Definido no cabeçalho <stdlib.h>
void srand( unsigned seed );
Inicializa o gerador de números aleatórios usado para gerar valores para rand() com o valor da semente 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.

Índice

[editar] Parâmetros

seed -
o valor da semente
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

(Nenhum)
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] Exemplo

[editar] Veja também

gera um número pseudo-aleatório
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.

(função) [edit]