def generator():1x,y = var("x y")23# Genereate random line with slope -B/A4A = randrange(1,10)*choice([-1,1])5B = A6while A==B:7B = randrange(1,10)*choice([-1,1])8C = randrange(-9,10)9# standard equation10line1 = {11'equation': (A*x+B*y==C),12'slope': -B/A,13}1415# Genereate random line with slope m16m = randrange(1,10)*choice([-1,1])17b = randrange(-9,10)18# slope-intercept equation19line2 = {20'equation': (y==m*x+b),21'slope': m,22}2324lines = [line1,line2]25shuffle(lines)2627return {28"lines": lines,29"alt_prompt": choice([True,False]),30}313233