import string
import random


def random_string_generator(size=6, chars=string.ascii_uppercase + string.digits):
    """
    Generate random string
    Args:
        size: length of the string
        chars: sequence of chars to use

    Returns: random string of length "size"
    """
    return ''.join(random.choice(chars) for _ in range(size))