Python OOPs


Examples


Others


Random Number in Python


The randint() method used to return a random number with given range. The randint() method is defined in random module.

Example
import random
n=random.randint(10000,99999)
print(n)
Output
26150