new Random().nextXxx();
new Random().nextXxx(10);
--Liste de nombres aléatoires non dupliquée
new Random().ints(0, Integer.MAX_VALUE)
    .distinct()
    .limit(10)
    .boxed()
    .collect(Collectors.toList())
-Liste acquisition de nombres aléatoires
list.get(random.nextInt(list.size()));
        Recommended Posts