Random rand = new Random();
boolean[] bool = new boolean[100];
int[] number = new int[100];
int randINT;
for(int i = 0;i<100;i++){
do{
randINT = rand.nextInt(99);
}while(bool[randINT]);
number[randINT] = randINT;
bool[randINT] = true;
}