Randomized the seed of rand()