Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. letters = ['a', 'b', 'c', 'd']
  2. random.shuffle(letters)
  3.  
  4. index = 0
  5.  
  6. while somecondition:
  7. dosomethingwith letters[index % len(letters)]
  8. alter somecondition
  9. index += 1
  10.  
  11. if index == len(letters):
  12. random.shuffle(letters)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement