import random


def generate_random_string(size: int) -> str:
    """ Generate a string of a given size consisting of characters 0,1,2, and 3 """
    return "".join([ str(random.randrange(4)) for _ in range(size) ])