Advertisement
Dudugz-Contistente

Untitled

Aug 20th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import random
  2.  
  3. def sendSorteio(sorts=False):
  4. lista=['Joao','Kaue','Rafa','Riannamojanga']
  5. if not sorts:
  6. sorts=[]
  7.  
  8. n=random.choice(lista)
  9.  
  10. if n in sorts:
  11. sendSorteio(sorts)
  12. return None
  13. else:
  14. sorts.append(n)
  15. return n
  16.  
  17. print(sendSorteio())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement