import random
import string


def get_random_alphanumeric_string(letters_count, digits_count):
    """
    Generate random number based on the letters count and digits count
    """
    sample_str = ''.join((random.choice(string.ascii_letters) for _ in range(letters_count)))
    sample_str += ''.join((random.choice(string.digits) for _ in range(digits_count)))

    # Convert string to list and shuffle it to mix letters and digits
    sample_list = list(sample_str)
    random.shuffle(sample_list)
    final_string = ''.join(sample_list)
    return final_string