import random
import string


def get_random_string(length: int) -> str:
    """
    Get a random string containing ASCII alphanumerical characters.
    :param length: the length of generated string
    :return: a str object with length equal to :attr:`length` containing random characters.
    """
    return ''.join(random.choices(string.ascii_letters + string.digits, k=length))