Skip to content

How to generate random list in Python with specific range?

import random
randomlist = []
for i in range(0,5):
n = random.randint(1,30)
See also  Python code snippet - How long does it take to learn ?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.