Implemented a seed for the random number generator