import random
import string


def id_generator(base = ""):
    """
    Generates a random ID in the form of a string
    --------------
    Keyword Arguments:
        base -- a string to be used as the base of the ID
    Returns
    --------------
    id : string
        A random string of ascii characters and digits
    """
    id = base.join(
        random.choice(string.ascii_uppercase + string.digits)
        for _ in range(8))
    return id