import string
import random


def id_generator(size: int = 6, 
            chars: str = string.ascii_uppercase + string.digits) -> str:
    """Generates random 6 character alphanumeric string

    Args:
        size (int, optional): size of returned string. Defaults to 6.
        chars (str, optional): characters to choose from. Defaults to string.ascii_uppercase+string.digits.

    Returns:
        str: 6 character alphanumeric string
    """
    
    return ''.join(random.choice(chars) for _ in range(size))