Namespace
Varianti

rand

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

Defined in header <stdlib.h>
int rand();
Restituisce un uniformemente distribuiti valore pseudo-casuale integrale tra 0 e RAND_MAX (0 e RAND_MAX inclusi).
Original:
Returns a uniformly distributed pseudo-random integral value between 0 and RAND_MAX (0 and RAND_MAX included).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
srand() deve essere chiamato prima di qualsiasi chiamata a rand() per inizializzare il generatore di numeri casuali.
Original:
srand() should be called before any calls to rand() to initialize the random number generator.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Indice

[modifica] Parametri

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

[modifica] Valore di ritorno

Pseudo-casuale tra valore integrale 0 e RAND_MAX.
Original:
Pseudo-random integral value between 0 and RAND_MAX.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica] Esempio

[modifica] Vedi anche

inizializza pseudo-generatore di numeri casuali
Original:
initializes pseudo-random number generator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(funzione) [modifica]