Use randomGenerator