added setSeed method