Use GPRandom to generate random number