import random
import string


def random_string(length: int) -> str:
    """Generate a random string with defined length.

    Args:
        length (int): desired string length.

    Returns:
        str: generated random string.
    """
    return ''.join(random.choice(string.ascii_letters) for _ in range(length))