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!




codesadda.com

Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more. Sign Up for our weekly newsletter to get update about new content.

Like us on Facebook | Connect with us on LinkedIn | Subscribe our Channel on Youtube