Python Program to Generate a Random Number


In [1]:
import random

print(random.randint(5,15))
9

In this program, we are using the Random module to generate the random number. Here, it will generate the random number between 5 and 15.