import string
import random


def _generate_random_string(str_len: int=500, chars: str=string.ascii_uppercase + string.ascii_lowercase + string.digits) -> str:
    """Used to generate a random string using letters and digits
    Arguments:
        str_len - the length of the string to generate
    Return:
        Returns a random string of the specified length
    """
    return ''.join(random.choice(chars) for _ in range(str_len))