random
var c="Rock"; var d="Paper"; var e="Scissors"; var thing = window['cde'.charAt(Math.floor(Math.random()*3))]; document.write('The computer chose: ' + thing); //3 the length of the array