random pytghon code example
Example 1: random number pythn
import random
n = random.randint(0,22)
print(n)
# Output: 2
Example 2: random in python
print(random.randint(1, 100))
print(random.random())
import random
n = random.randint(0,22)
print(n)
# Output: 2
print(random.randint(1, 100))
print(random.random())