Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main():
- import random
- good = False
- POS = 15
- used = []
- print "Please enter the letters in your hand"
- letters = raw_input('')
- used.append(letters)
- print "Here are some possibilites"
- for x in range(POS):
- for i in range(len(used)):
- if randomize(letters) != used:
- good = True
- if good:
- print randomize(letters)
- used.append(randomize(letters))
- good = False
- def randomize(letters):
- import random
- word = ''
- for y in range(7):
- rand = random.randrange(7)
- word = str(word)+str(letters[rand])
- print word
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement