Comment faire un random en c++ ?
bighux
-
Spack -
Spack -
bonjour,
Je suis débutant en prog et je cherche à savoir comment générer un nombre aléatoire en c++.
J'ai esseyé l'instrcution " random" mais sa marche pas. Y a t il un fichier d'entête qui contient une telle instruction ?
Sinon comment faire ?
Merci d'avance
Je suis débutant en prog et je cherche à savoir comment générer un nombre aléatoire en c++.
J'ai esseyé l'instrcution " random" mais sa marche pas. Y a t il un fichier d'entête qui contient une telle instruction ?
Sinon comment faire ?
Merci d'avance
A voir également:
- Comment faire un random en c++ ?
- Quiksilver random - Forum Programmation
- Chat random - Accueil - Réseaux sociaux
- Random Java ✓ - Forum Java
- Timer random - Forum Java
- Random. chat - Accueil - Réseaux sociaux
pour avoir une serie differente a chaque fois
1) appeles 1 fois srand(x)
avec x = date() // sorry j'ai pas les fonctions de dates ici ...
2) appelle rand()