Use a seeded random generator to reproduce the same simulation.