Adding the setting of the random seed to increase reproducibility.