Remove Warning in getRand