sample of setRand