How to generate random numbers using python code

In this tutorial, we are going to show How to Generate random numbers using python. We have added the video tutorial and the source code of the program.

Video Tutorial: Generate random numbers using python code

Source Code

# Python program to generate random numbers

import random 
for i in range(10): 
    random_number = random.randint(0,100) 
    print("\nRandom Number : ",random_number) 

Output

Also Read: Python program to create bmi calculator

Join Now : Learn Python Programming Masterclass

Leave a Reply

Your email address will not be published. Required fields are marked *