agents = [] agents.append(random.randint(0,99),random.randint(0,99)]) print(agents[0][0]) if random.random() < 0.5: agents[0][0] += 1 else: agents[0][0] -= 1 print(agents[0][0]) agents.append([random.randint(0,99),random.randint(0,99)]) print(agents[0][0]) print(agents[0][1]) agents.append([random.randint(0,99),random.randint(0,99)]) print(agents[0][0]) print(agents[0][1])