>>> import random
>>> random.randint(0, 10)
Generate random number in Python Shell |
Code example:
#generate random 5 number import random for x in range(0, 5): random_number = random.randint(0, 10) print(random_number)
Python code to generate random number |
Output |