added seed to the random number generator.