Statistics
| Branch: | Tag: | Revision:

root / utils / randomizer.py @ 1534e9c2

History | View | Annotate | Download (163 Bytes)

1
import string
2
import random
3

    
4
def id_generator(size=6, chars=string.ascii_uppercase + string.digits):
5
    return ''.join(random.choice(chars) for x in range(size))