Relier Pairs Math.random() JavaVersion en ligne matching game par Nina Newlin 1 (int) (Math.random() * 11) + 2 2 (int) (Math.random() * 20) 3 Math.random() * 11 4 (int) Math.random() 5 (int) (Math.random() * 10) + 1 6 (int) (Math.random() * 2 + 5) 7 Math.random()*10 8 Math.random() 9 (int) (Math.random() * 13) + 10 10 Math.random() * 2 11 (int) (Math.random() * 10) 12 (Math.random() * 9) + 1) 1.0 <= x < 12 0.0<= x < 2.0 2<= x <= 12 5 or 6 0.0 <= x < 1 0.0 <= x < 10.0 1.0 <= x <= 9.0 0 <= x <= 19 1 <= x <= 10 10 <= x <23 0 0 <= x <= 9