generate random number in python and then add code example
Example 1: random number python
# generate random integer values
from random import randint
value = randint(0, 10)
print(value)
Example 2: python random list
import random
#Generate 5 random numbers between 10 and 30
# sample number needs to be smaller than population
randomlist = random.sample(range(10, 30), 5)
print(randomlist)