import random for i in range(10000): j = random.randint(1,1000) k = random.randint(1,1000) print("edge(", j, ",", k, ").")