generate random seed.