# generate random integer values from random import randint  value = randint(0, 10) print(value) 

Read more of this post