Wobbly-Website/files/python/ematrix/ematrix1.0.py
2023-07-30 18:32:42 +02:00

129 lines
No EOL
3.4 KiB
Python

import random
import time
loop = 1
while loop == 1:
charornum = random.randrange(1,3)
if charornum == 1:
numcharacter = random.randrange(1,46)
if numcharacter == 1:
character = "A"
if numcharacter == 2:
character = "B"
if numcharacter == 3:
character = "C"
if numcharacter == 4:
character = "D"
if numcharacter == 5:
character = "E"
if numcharacter == 6:
character = "F"
if numcharacter == 7:
character = "G"
if numcharacter == 8:
character = "H"
if numcharacter == 9:
character = "I"
if numcharacter == 10:
character = "J"
if numcharacter == 11:
character = "K"
if numcharacter == 12:
character = "L"
if numcharacter == 13:
character = "M"
if numcharacter == 14:
character = "N"
if numcharacter == 15:
character = "O"
if numcharacter == 16:
character = "P"
if numcharacter == 17:
character = "Q"
if numcharacter == 18:
character = "R"
if numcharacter == 19:
character = "S"
if numcharacter == 20:
character = "T"
if numcharacter == 21:
character = "U"
if numcharacter == 22:
character = "V"
if numcharacter == 23:
character = "W"
if numcharacter == 24:
character = "X"
if numcharacter == 25:
character = "Y"
if numcharacter == 26:
character = "Z"
if numcharacter == 27:
character = " "
if numcharacter == 28:
character = "("
if numcharacter == 29:
character = ")"
if numcharacter == 30:
character = "%"
if numcharacter == 31:
character = "$"
if numcharacter == 32:
character = "!"
if numcharacter == 33:
character = "/"
if numcharacter == 34:
character = "&"
if numcharacter == 35:
character = "="
if numcharacter == 36:
character = "#"
if numcharacter == 37:
character = "*"
if numcharacter == 38:
character = "+"
if numcharacter == 39:
character = "-"
if numcharacter == 40:
character = "<"
if numcharacter == 41:
character = ">"
if numcharacter == 42:
character = "§"
if numcharacter == 43:
character = "?"
if numcharacter == 44:
character = "["
if numcharacter == 45:
character = "]"
grorwh = random.randrange(1,3)
if grorwh == 1:
print("\033[0;32m" + character + "\033[0m", end="", flush="true")
if grorwh == 2:
print("\033[1;37m" + character + "\033[0m", end="", flush="true")
if charornum == 2:
grorwh = random.randrange(1,4)
if grorwh == 1:
print("\033[0;32m" + str(random.randrange(0,10)) + "\033[0m", end="", flush="true")
if grorwh == 2:
print("\033[1;32m" + str(random.randrange(0,10)) + "\033[0m", end="", flush="true")
if grorwh == 3:
print("\033[1;37m" + str(random.randrange(0,10)) + "\033[0m", end="", flush="true")
time.sleep(0.001)