RE: dark subforum ideas thread: xxx edition
04-28-2016, 12:02 AM
pre-mr@of code:
Code:
from random import randint
def getColors():
outColor = ""
for x in range(0, 6):
num = randint(8,14)
if num <= 9:
outColor += str(num)
elif num == 10:
outColor += "A"
elif num == 11:
outColor += "B"
elif num == 12:
outColor += "C"
elif num == 13:
outColor += "D"
elif num == 14:
outColor += "E"
return outColor
inString = "yeah, i think that was already kind of an unspoken rule that covers the entire forums but i'm not at all against formally declaring this a rule"
outString = ""
for c in inString:
if c == "a" or c == "A":
outString += "[color=#" + getColors() + "]" + "@" + "[/color]"
else:
outString += "[color=#" + getColors() + "]" + c + "[/color]"
print outString