Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options = ['rock', 'paper', 'scissors']
- index = rand(3)
- computer = options[index]
- # more compact
- options = ['rock', 'paper', 'scissors']
- computer = options[rand(3)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement