fixing random number generator now seeded with time