def generate(full_path):
	try:
		randString = ""
		numList = list()
		for a in range(5):
			num = random.randint(2,20)
			numList.append(num)
		for i in range(10):
			randString = makeid()
			f = open(full_path + os.sep + "test" + str(i) + ".in", "w")
			f.write(",".join([str(j) for j in numList]) + "\n" + randString + "\n")
			f.close()

			output = strChanger(randString,numList) + "\n"
			f = open(full_path + os.sep + "test" + str(i) + ".out", "w")
			f.write("%s" % output)
			f.close()
			randString = ""
		return 1
	except:
		return 0
dataset/ETHPy150Open EasyCTF/easyctf-2015/api/program-data/generators/string-change.py/generate/original