import random


def random_string(
    length: int,
    chars: str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
) -> str:
    """Return a random string of some `length`."""
    return "".join((random.choice(chars) for i in range(length)))