Python Program to Generate a Random Number



Using randint() function which is included in random module in python we can generate any random number.



  1. #Python Program to Generate a Random Number
  2. import random
  3. print(random.randint(0,100))

Output


Output!