Skip to content

Instantly share code, notes, and snippets.

@GINK03
Created June 2, 2019 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GINK03/4f31b037eaa2294879393a67bed088d3 to your computer and use it in GitHub Desktop.
Save GINK03/4f31b037eaa2294879393a67bed088d3 to your computer and use it in GitHub Desktop.

reqs

pip install termcolor

snippet

import os
import random
import time
from termcolor import colored
cdefs = '''grey
red
green
yellow
blue
magenta
cyan
white'''.split('\n')

ins = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
ins = list(ins)

while True:
    rc = random.choice(ins)
    cdef = random.choice(cdefs)
    print(colored(rc, cdef), end='')
    #time.sleep(0.0001)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment