Skip to content

How to make a random variable in Python?

# generate random integer values
from random import seed
from random import randint
# seed random number generator
# generate some integers
for _ in range(10):
	value = randint(0, 10)
See also  Python code snippet - How to send emails ?

Leave a Reply

Your email address will not be published. Required fields are marked *

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