hwo to get random number in python code example
Example 1: python function to print random number
import random
n = random.randint(0,22)
print(n)
Example 2: random in python
print(random.randint(1, 100))
print(random.random())
import random
n = random.randint(0,22)
print(n)
print(random.randint(1, 100))
print(random.random())