import string
import random


def make_random_file_name(state, county, size=6, chars=string.ascii_uppercase + string.digits):
    """
    Make and return random file name for output.
    "output/state + RANDOM STRING + COUNTY
    """
    file_str = "population-output/" + state + "/" + state + "_" + ''.join(random.choice(chars) for _ in range(size))
    if county:
        file_str += ("_" + "_".join(county.lower().split(" ")))
    return file_str + ".csv"