Added seed for random number generation.