Espaces de noms
Variantes
Affichages
Actions

rand

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

Déclaré dans l'en-tête <stdlib.h>
int rand();
Retourne une répartie uniformément pseudo-aléatoire valeur entière comprise entre 0 et RAND_MAX (0 et RAND_MAX comprises) .
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() doit être appelée avant tout appel à rand() pour initialiser le générateur de nombres aléatoires .
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.

Sommaire

[modifier] Paramètres

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

[modifier] Retourne la valeur

Pseudo-aléatoire valeur entière comprise entre 0 et 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.

[modifier] Exemple

[modifier] Voir aussi

initialise générateur de nombre pseudo-aléatoire
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.

(fonction) [edit]