Try this code to check or test your random number generator.
public static void main(String[] arg) {
Random rand = new Random();
long t = 0;
long total=0;
for (int k = 0; k < 10; k++) {
t=0;
for (int i = 0; i < 100; i++) {
i = rand.nextInt(100);
System.out.println(i);
t++;
}
total=total+t;
System.out.println("instances:" + t);
}
System.out.println("total instances:" + total);
}