[Java]获取10个20-35之间的随机数,要求不能重复
获取10个20-35之间的随机数,要求不能重复public class Demo01 { public static void main(String[] args) { Set<Integer> set = new HashSet<>(); Random r = new Random(); int num = 0; while (num < 10){