import string
import random


def get_rand_string(size=6, chars=string.ascii_uppercase + string.digits):
    """generates a random string.
    :param size: length of the string
    :param chars: string of charaters to chese form, by default a-zA-Z0-9
    """
    return ''.join(random.choice(chars) for _ in range(size))