Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while 1==1:
- import random as rn
- blist = list(range(-81, 82))
- clist = list(range(-81, 82))
- xlist = list(range(-9, 10))
- xxlist = list(range(-9, 10))
- rn.shuffle (blist)
- rn.shuffle (clist)
- c = clist[1]
- b = blist[1]
- x = xlist [1]
- xx = xxlist [1]
- while x + xx != -b and x * xx != c:
- rn.shuffle (blist)
- rn.shuffle (clist)
- rn.shuffle (xlist)
- rn.shuffle (xxlist)
- c = clist[1]
- b = blist[1]
- x = xlist [1]
- print (x)
- xx = xxlist [1]
- print (xx)
- else:
- bact = ''
- cact = ''
- if b > 0:
- bact = '+'
- else:
- bact = ''
- if c > 0:
- cact = '+'
- else:
- cact = ''
- print ('x2', bact, b, cact, c, '=0')
- break
Add Comment
Please, Sign In to add comment