Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- working = 1
- while working == 1 :
- d1 = random.randint(0, 9)
- d2 = random.randint(0, 9)
- d3 = 7
- d4 = random.randint(0, 9)
- d5 = random.randint(5, 6)
- d6 = random.randint(0, 9)
- d7 = random.randint(0, 9)
- d8 = random.randint(0, 9)
- d9 = random.randint(0, 9)
- d10 = random.randint(0, 9)
- d11 = random.randint(0, 9)
- d12 = random.randint(0, 9)
- d13 = random.randint(0, 9)
- sum = (d1+d2+d3+d4+d5+d6+d7+d8+d9+d10+d11+d12)
- d14 = sum % 10
- d15 = (d14+sum) / 10
- d16 = (d14+sum) % 10
- value = d3*1000 + d5*100 + d8*10 + d13
- if (value > 7580) and (value < 7695):
- working = 0
- key = str(d1) + str(d2) + str(d3) + str(d4)
- key = key + str(d5) + str(d6) + str(d7)+str(d8)
- key = key + str(d9) + str(d10) + str(d11)+str(d12)
- key = key + str(d13) + str(d14) + str(d15)+str(d16)
- print "Your key: " + key
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement