import string
import random


def id_generator(size=16, chars=string.ascii_uppercase + string.digits):
    """Will generate and return a random 16 character ID

    Params:
    size: The length of the string to generate
    chars: The type of characters to include in the random string

    Returns:
    A random string
    """
    return str(''.join(random.choice(chars) for x in range(size)))