Returns a new Random object that can be used. The Random object returned is promised to be a reasonably high quality PSRND with low memory overhead that is faster to sample from than the default Java Random. Essentially, it will be better than Java's default PRNG in every way. By d
()
| 69 | * @return a new random number generator to use. |
| 70 | */ |
| 71 | public static synchronized Random getRandom() |
| 72 | { |
| 73 | int seed = DEFAULT_SEED; |
| 74 | if(INCREMENT_SEEDS) |
| 75 | DEFAULT_SEED += SEED_INCREMENT; |
| 76 | return new XORWOW(seed); |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Returns a new Random object that can be used, initiated with the given |
no outgoing calls