def write_to_file(filename, no_locations, no_agents):
    info_dict = {}
    header = 'Location Index:Agents:Time Interval'
    n = random.randint(10, 20)
    f = open(filename, 'w')
    f.write((str(n) + '\n'))
    f.write((header + '\n'))
    for i in range(n):
        line = (str(random.randint(0, (no_locations - 1))) + ':')
        for i in range(random.randint(0, 20)):
            line += (str(random.randint(0, (no_agents - 1))) + ',')
        line += str(random.randint(0, (no_agents - 1)))
        line += ((':' + str(random.choice([10, 30, 45, 60]))) + '\n')
        f.write(line)
def write_to_file(filename, no_locations, no_agents):
    info_dict = {}
    header = 'Location Index:Agents:Time Interval'
    n = random.randint(10, 20)
    f = open(filename, 'w')
    f.write((str(n) + '\n'))
    f.write((header + '\n'))
    for i in range(n):
        line = (str(random.randint(0, (no_locations - 1))) + ':')
        for i in range(random.randint(0, 20)):
            line += (str(random.randint(0, (no_agents - 1))) + ',')
        line += str(random.randint(0, (no_agents - 1)))
        line += ((':' + str(random.choice([10, 30, 45, 60]))) + '\n')
        f.write(line)