Files
WPIQ/wo/core/random.py
2019-10-01 04:08:54 +02:00

13 lines
314 B
Python

import random
import string
class RANDOM:
"""Random strings generator"""
def gen(self, length='24'):
short_random = ''.join([random.choice
(string.ascii_letters + string.digits)
for n in range(length)])
return short_random