public class ExempleTypesPrimitifs { public static void main (String[] argv) { int compteur = 0; while(compteur != 100) { // Prend un nombre aléatoire double nbreAleatoir = Math.random() * 1000; // Etablie un index de 0 à 10 int index = compteur % 10; // Construction de l’affichage System.out.println("Index:" + index + "Nbre Aléatoir:" + (int)nbreAleatoir); // Incrémentation de la boucle compteur+= 1; } } }