Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

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
You can’t perform that action at this time.