how can i select random characters in a pythonic way?,return ''.join(random.choice(char) for x in range(length))