Generate Random Integer in Range using Python

random.randint function

import random

minValue = 1
maxValue = 100
randValue = random.randint(minValue, maxValue)

print(randValue)

Leave a Comment

Cancel reply

Your email address will not be published.