from decimal import Decimal
import time
from random import *
while True:
	a = int(random()*10)+1
	if a == 1:
		print("0")
        
	else:
		print(a)
		time.sleep(0.1)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: