def random_string(random_length=None):
    choices = string.letters + ' '
    text = []
    if not random_length:
        random_length = random.randint(1, 30)
    for x in range(random_length):
        text.append(random.choice(choices))
    return "".join(text)
A generator for creating random string data of letters plus ' ' (whitespace)
dataset/ETHPy150Open Element-34/py.saunter/saunter/generators/string_data.py/random_string