def random_string(n):
    seed(time.time())
    s = [printable[randrange(0,36)] for i in range(n-1)]
    s.insert(0, printable[randrange(10,36)])
    return ''.join(s)
random_string(n)
dataset/ETHPy150Open xraypy/xraylarch/plugins/io/fileutils.py/random_string