def rand_len_fixed_char_str(c, low_len=1, high_len=256):
    '''Return a string containing a number of characters c,
    varying randomly in length between low_len and high_len'''
    assert len(c) == 1
    assert 0 < low_len <= high_len
    rand_chars = c * randint(low_len, high_len)
    return rand_chars
Return a string containing a number of characters c,
    varying randomly in length between low_len and high_len
recipes/Python/580690_many_uses_randomness__Part/recipe-580690.py