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++ ?
- Chat random - Accueil - Réseaux sociaux
- Random. chat - Accueil - Réseaux sociaux
- Pokemon noir 2 random rom fr - Forum Jeux vidéo
- Random MixTape Maker - Télécharger - Lecture & Playlists
- Random() génére un nombre répété ✓ - Forum Java
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()