var computerChoice = Math.random(); console.log(computerChoice); if (computerChoice<=0.2 ) { console.log("rock"); } if (0.3<computerChoice<0.9) { console.log("m l"); } if (computerChoice>=0.9) { console.log("pape2"); }