So I'm taking a JAVA programming class, but I'm not too good with it. We needed to come up with a random number generator that won't come up with the same number twice, and it can use up to 3 digits. But this is a close as I could get:

Code:

import java.util.Random;
/** Generate 10 random integers in the range 0..99. */
public final class RandomInteger {
public static final void main(String... aArgs){
log("Generating 10 random integers in range 0..99.");
//note a single Random object is reused here
Random randomGenerator = new Random();
for (int idx = 1; idx <= 10; ++idx){
int randomInt = randomGenerator.nextInt(100);
log("Generated : " + randomInt);
}
log("Done.");
}
private static void log(String aMessage){
System.out.println(aMessage);
}
}

Anyone have have any suggestions on how I can tweak this?

EDIT: I'm also using the freeware bluejay to program in JAVA.