posted 18 years ago
I don't think you can stop the JVM from randomly generating the next value different from the previous ones........because JVM doesn't store which values it has already generated in a range.......
Though you can control it, & put the random values in a Set..this way you can ensure that values are not duplicated........