random number generator from a list python code example
Example 1: python function to print random number
import random
n = random.randint(0,22)
print(n)
Example 2: n random numbers python
>>> import random
>>> random.sample(range(1, 100), 3)
[77, 52, 45]