Added seeding for the random number generators for reproducibility.