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