rename initRand to setRand