A voir également:
- Comment faire un random en c++ ?
- Random c# ✓ - Forum C#
- Random c entre 0 et 1 ✓ - Forum C
- Rom pokemon noir random - Forum Jeux vidéo
- Random batch ✓ - Forum Autoit / batch
- Fonction random c++ ✓ - Forum C++
3 réponses
Salut, de mémoire regzrde dans les directions suivantes:
math.h ou stlib.h ?
rand()
srand()
random()
math.h ou stlib.h ?
rand()
srand()
random()
Les nombres aléatoire n'existe pas, rien n'arrive par hasard ^_^ . Au mieux on ne peut que simuler un nombre aléatoire avec une ou plusieurs fonctions.
2 sept. 2003 à 14:10
2 sept. 2003 à 15:16
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()