import random
import string


def generate_random_string(size: int) -> str:
    """
    Generate a random string (upper case or digits) of length size
    :param size: length of string to generate.
    """
    return ''.join(random.choices(string.ascii_uppercase + string.digits, k=size))