import string
import random


def random_string_generator(size=10, chars=string.ascii_uppercase + string.digits):
    """
    Generate a random string of `size` consisting of `chars`
    """
    return ''.join(random.choice(chars) for _ in range(size))