int[] a = new int[1000];
for(int i = 0;i<1000;i++){
a[i]=i;
}
set=new java.util.HashSet <Integer>();
time = System.currentTimeMillis();
for(int size = 1000;size>=1;size--){
int n = ran.nextInt(size);
set.add(a[n]);
for(int j = n ;j<999;j++){
a[j]=a[j+1];
}
}