Gerador de texto aleatório python
import random, string
ran = ''.join(random.choices(string.ascii_letters + string.digits, k=16))
print(ran)
Wolfee
import random, string
ran = ''.join(random.choices(string.ascii_letters + string.digits, k=16))
print(ran)
import string
import random
length=5
#python2
randomstr = ''.join(random.sample(string.ascii_letters+string.digits,length))
#python3
randomstr = ''.join(random.choices(string.ascii_letters+string.digits,k=length))
# -random letter generator-
import string
var1 = string.ascii_letters
import random
var2 = random.choice(string.ascii_letters)
print(var2)