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