Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. options = ['rock', 'paper', 'scissors']
  2. index = rand(3)
  3. computer = options[index]
  4.  
  5. # more compact
  6. options = ['rock', 'paper', 'scissors']
  7. computer = options[rand(3)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement