public class qiantao_1 {
//产生10个1到20之间的随机数
public static void main(String[] args) {
// TODO Auto-generated method stub
//extracted();
//extracted_2();
Random r = new Random();
HashSet
while(hs.size()< 10) {
hs.add(r.nextInt(20+1));
}
for(Integer integer:hs) {
System.out.println(integer);
}
}