var choices = ["rock","paper","scissors"]; var computer = choices[Math.floor(Math.random()*3)]; console.log("The computer picked " + computer+".");