Algo c++
Fermé
fafuu
-
11 juin 2011 à 18:30
KX Messages postés 16741 Date d'inscription samedi 31 mai 2008 Statut Modérateur Dernière intervention 30 mai 2024 - 11 juin 2011 à 19:18
KX Messages postés 16741 Date d'inscription samedi 31 mai 2008 Statut Modérateur Dernière intervention 30 mai 2024 - 11 juin 2011 à 19:18
A voir également:
- Algo c++
- Telecharger algo pour pc - Télécharger - Édition & Programmation
- Traduction d'un algo en langage c - Forum C
- Aide : algo palindrome - Forum Programmation
- Demande d'algo Mastermind - Forum Programmation
- Implémentation de l'algo de Dijkstra en C - Forum C
1 réponse
KX
Messages postés
16741
Date d'inscription
samedi 31 mai 2008
Statut
Modérateur
Dernière intervention
30 mai 2024
3 016
11 juin 2011 à 19:18
11 juin 2011 à 19:18
Tu peux faire :
double r = rand()/((double)RAND_MAX + 1); // entre 0 et 1 if (r<0.80) route1(); else route2();