setSeed
public void setSeed(long randomSeed,
boolean bReplaceSeed)
Reseeds the random number generator. If bReplaceSeed is true, the given seed complete replaces (rather than supplements) the seed. This means
that the random number generator will generate the same sequence of numbers as another instance with the same seed.
- Parameters:
randomSeed
- the new seed, which either supplements or replaces the current seed
bReplaceSeed
- if true the given seed will completely replace the current seed, otherwise it will just supplement it