def create_distribution(n,t,k1,k2,u): result=[] for i in range (int(k1/u),int(k2/u)+1): data=BirthdaySim.birthday_sim(n,i*u,t,0,0) result.append([i*u,data]) return result
def list_percent(result): for entry in result: entry[1]=BirthdaySim.check_percent(entry[1]) return result