Hi Joerg,
this is an absolutely "normal" behaviour. It does not depend
on the operating system, but more on system speed.
Your CPU has enough power to calculate n-thousand additions
in one milli second.
It is not predictable, since it depends on the machine in use.
I have found this in an other context:
Random r1 = new Random(); //depends on System.currentMillis()
If you have the need to randomize more than one number (and cannot
rely on the same random object) you need one random for the seed,
and one random for the number generating:
private static final Random RANDOM_FOR_SEED = new Random();
//....
public int generateRandomInt(){
Random localRandom = new Random(RANDOM_FOR_SEED.nextLong());
return localRandom.nextInt(100);
}
Regards
Boris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]