Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- while True:
- n2=random.randint(110,190)/100
- x1 = random.randint(1,6)
- y1 = random.randint(1,6)
- x2 = random.randint(1,6)
- y2 = random.randint(1,6)
- s1 = x1/(x1**2+y1**2)**0.5
- s2 = x2/(x2**2+y2**2)**0.5
- n1 = n2*s2/s1
- s = str(n2)
- if 1.01<=n2<=1.9 and n1<n2 and x1*y2 != x2 *y1 and s[4:7]=="000":
- print(x1, y1, x2, y2, n1, n2)
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement