set rand seed.