import string
import random


def id_generator(size=10, chars=string.digits):
    """Generates a 10 string ID of uppercase characters and integers
    unless given the arguments 1) the length 2) characters to choose from
    in generation. h/t to the internet.
    """
    return ''.join(random.choice(chars) for _ in range(size))