Random
Fermé
yassin
-
9 févr. 2010 à 00:37
ziedzico Messages postés 393 Date d'inscription mercredi 5 mars 2008 Statut Membre Dernière intervention 12 avril 2014 - 9 févr. 2010 à 13:42
ziedzico Messages postés 393 Date d'inscription mercredi 5 mars 2008 Statut Membre Dernière intervention 12 avril 2014 - 9 févr. 2010 à 13:42
4 réponses
ziedzico
Messages postés
393
Date d'inscription
mercredi 5 mars 2008
Statut
Membre
Dernière intervention
12 avril 2014
110
9 févr. 2010 à 13:35
9 févr. 2010 à 13:35
intéressant à savoir pour moi aussi ...
merci.
merci.
Kerdy
Messages postés
93
Date d'inscription
mercredi 18 novembre 2009
Statut
Membre
Dernière intervention
15 mars 2010
31
9 févr. 2010 à 13:38
9 févr. 2010 à 13:38
En quel langage ?
ziedzico
Messages postés
393
Date d'inscription
mercredi 5 mars 2008
Statut
Membre
Dernière intervention
12 avril 2014
110
9 févr. 2010 à 13:38
9 févr. 2010 à 13:38
en java svp
ziedzico
Messages postés
393
Date d'inscription
mercredi 5 mars 2008
Statut
Membre
Dernière intervention
12 avril 2014
110
9 févr. 2010 à 13:42
9 févr. 2010 à 13:42
ce code affiche un float mais je ne sais pas ses bornes min max :
public class unmoinsun {
public static void main(String args[]) {
Random rand = new Random();
float x = rand.nextInt();
System.out.println(x);
}
}
public class unmoinsun {
public static void main(String args[]) {
Random rand = new Random();
float x = rand.nextInt();
System.out.println(x);
}
}