math random module in python code example
Example 1: random number python
import random
num = random.randint(1, 10) # put any number
print(num)
Example 2: python randint
from random import randint
print(randint(1,2))
import random
num = random.randint(1, 10) # put any number
print(num)
from random import randint
print(randint(1,2))