123456789101112131415161718 |
- import pyfiglet
- import os
- chars = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
- def randomification(chars):
- captcha = list()
- while len(captcha) != 3:
- char = int(str(list(os.urandom(1))[0]))
- if char > 0 and char <= 25:
- captcha.append(chars[char])
- ASCII = pyfiglet.figlet_format(str(captcha[0])+str(captcha[1])+str(captcha[2]))
- print(ASCII)
- randomification(chars)
|