adding in times and seeding of the random number generator