Skip to content

Instantly share code, notes, and snippets.

@harpiechoise
Created September 11, 2017 21:40
Show Gist options
  • Save harpiechoise/8b037a18a8de6ca57f234a7606af4c7b to your computer and use it in GitHub Desktop.
Save harpiechoise/8b037a18a8de6ca57f234a7606af4c7b to your computer and use it in GitHub Desktop.
#Antes de usar instalen clint abran el CMD y escriban pip intall clint
from random import randint as r
import time
from clint.textui import colored
def randomizer():
rand = r(1,255)
return chr(rand)
def espacer():
rand = r(1,2)
if rand > 1:
return True
else:
return False
for i in range(1000):
linea = 100
st = ""
time.sleep(0.1)
for i in range(linea):
bol = espacer()
if st == "" and bol == False:
st = randomizer()
elif bol == False:
st = st + randomizer()
elif bol == True:
st = st + " "
elif bol == True and st == "":
st = " "
print(colored.green(st))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment