alphabet = [get_char(code_point) for current_range in include_ranges for
    code_point in range(current_range[0], current_range[1] + 1)]
return ''.join(random.choice(alphabet) for i in range(length))
if __name__ == '__main__':
    pass
Создать случайную строку UTF-8 в Python