random number generator algorithm python code example
Example 1: python random number
from random import randint
print(randint(1,3))
#Possible Outputs#
#1
#2
#3
Example 2: how to generate a random number python
import random
n = random.randint(0,22)
print(n)
Example 3: random number generator in python
import random
a = random.randint(0,10)
print(random.randint(0,a))