public class Main {
public static void main(String[] args) {
ArrayList<Integer> list = new ArrayList<>();
Random random = new Random();
while(list.size() < 10){
int nextInt = random.nextInt(101);
if(!list.contains(nextInt)){
list.add(nextInt);
}
}
System.out.println(list);
}
}