#import 'random' library import random #print infinitely and randomly while 1: rand = random.randint(1,10) print(rand)