how to generate random list in python with specific range code example
Example: how to generate random list in python with specific range
import random
randomlist = []
for i in range(0,5):
n = random.randint(1,30)
randomlist.append(n)
print(randomlist)