random generate a number in python code example
Example 1: python function to print random number
import random
n = random.randint(0,22)
print(n)
Example 2: generate random number python
import random
random.randint(lower, upper)
import random
n = random.randint(0,22)
print(n)
import random
random.randint(lower, upper)