Math.random().toString(36).substr(2, 5);
Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 5);
var word = ['Rock', 'Paper', 'Scissor'];
var words = word[Math.floor(Math.random()*word.length)];
alert('The computer chose:' + words);
// Be sure to add more to the string values if you wish to add more words.