Made setRandSeed method that makes tests repeatable