Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- letters = ['a', 'b', 'c', 'd']
- random.shuffle(letters)
- index = 0
- while somecondition:
- dosomethingwith letters[index % len(letters)]
- alter somecondition
- index += 1
- if index == len(letters):
- random.shuffle(letters)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement