random value in a list python code example
Example 1: how to generate a random number python
import random
n = random.randint(0,22)
print(n)
Example 2: python random generator from list
import random
n = random.random()
print(n)
import random
n = random.randint(0,22)
print(n)
import random
n = random.random()
print(n)