use random.randint to generate a integer number.