seeding the random function