How to generate random integers in bge?
Just regular old python, randint. Nothing special blender related for this one.

import random
random.randint(MinNubmer, MaxNumber)




You also could use the Random actuator. (but the pure python is simpler.)