ernestophone.ens.fr/propositions/utils.py
2015-07-22 16:08:59 -04:00

7 lines
195 B
Python

import string
import random
def generer(*args):
caracteres = string.ascii_letters + string.digits
aleatoire = [random.choice(caracteres) for _ in range(6)]
return ''.join(aleatoire)