def random_string(length: int) -> str:
    return ''.join((random.choice((string.ascii_letters + string.digits)) for _ in range(length)))
def random_string(length: int) -> str:
    return .join((random.choice((string.ascii_letters + string.digits)) for _ in range(length)))