import java.util.Set;public class RandomDemo { public static void main(String[] args){ Set<Integer> set=new HashSet<Integer>();boolean panduan=true;while(true){ int z=(int)(Math.random()*100+1);panduan=set.add(z);if(!panduan){ continue;} if(set.size()>=10){ break;...