import random
import webbrowser
natural = ""
wordl = 2
for i in range(10):
if random.randrange(5) == 0:
if not natural == "":
if " " in natural:
if len(natural[natural.rfind(" "):]) > wordl:
natural += [" ", ", ", ".", "!", "?"][random.randrange(5)]
else:
natural += [" ", ", "][random.randrange(2)]
if natural[-1] in ".!?":
break
if random.randrange(10) == 0:
natural = natural[:-1]+".!?"[random.randrange(4)]
break
else:
if (natural == "") or (l[-1] == " "):
natural += chr(random.randrange(65, 91))
else:
natural += chr(random.randrange(97, 123))
print(natural)
To embed this project on your website, copy the following code and paste it into your website's HTML: