added seeding function for random related functions