public class Demo05ArrayListTest1 {
public static void main(String[] args) {
ArrayList<Integer> List=new ArrayList<>();
Random r=new Random();
for (int i = 0; i < 6; i++) {
int num=r.nextInt(32)+1;
List.add(num);
}
System.out.println(List);
}
}