Random selection type 1
var things = ['Rock', 'Paper', 'Scissor']; var thing = things[Math.floor(Math.random()*things.length)]; alert('The computer chose:' + thing);