Advertisement
Arbitrator

Untitled

May 25th, 2019
6,544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. # model user: 1NL33
  2. # model key: UDDM-PPCT-758P-XK8N
  3.  
  4. import random
  5.  
  6. output = open("output.txt", "w")
  7.  
  8. possibilityList = [0,1,2,3,4,5,6,7,8,9,'Q','W','E','R','T','Y','U','I','O','P','A','S','D','F','G','H','J','K','L','Z','X','C','V','B','N', 'M']
  9.  
  10. runTimes = int(input("How many times should this run: "))
  11.  
  12. for i in range(runTimes):
  13. userid = ""
  14. key = ""
  15. # make user id
  16. for i in range(5):
  17. userid += str(random.choice(possibilityList))
  18.  
  19. # make key
  20. counter = 0
  21. for i in range(4):
  22. for i in range(4):
  23. key += str(random.choice(possibilityList))
  24. counter += 1
  25. if counter == 4:
  26. continue
  27. else:
  28. key += "-"
  29.  
  30. combo = "{}:{}".format(userid, key)
  31. output.write(combo)
  32.  
  33. output.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement