Advertisement
Guest User

UUUhhhhh

a guest
Jan 25th, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. def main():
  2. import random
  3. good = False
  4. POS = 15
  5. used = []
  6. print "Please enter the letters in your hand"
  7. letters = raw_input('')
  8. used.append(letters)
  9. print "Here are some possibilites"
  10. for x in range(POS):
  11. for i in range(len(used)):
  12. if randomize(letters) != used:
  13. good = True
  14. if good:
  15. print randomize(letters)
  16. used.append(randomize(letters))
  17. good = False
  18. def randomize(letters):
  19. import random
  20. word = ''
  21. for y in range(7):
  22. rand = random.randrange(7)
  23. word = str(word)+str(letters[rand])
  24. print word
  25. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement