random of 2 integers code example Example: How to choose randomly between two integers import random randomNumber = random.randint(-40, 40)