So I'm making a Javascript program for "rock paper scissor lizard Spock" and I'm using Math.random(). I need to use if/else/else if's. Can somebody help me with the inequalities? I know what I currently have is not quite right:
var userChoice = prompt("Do you choose Rock, Paper, Scissors, Lizard or Spock?");
var computerChoice = Math.random();
if (computerChoice > 0.20) {
computerChoice = "rock";
} else if(computerChoice < 0.40 && >=0.20) {
computerChoice = "paper";
} else if(computerChoice <0.60 && >=0.40 {
computerChoice = "scissors";
}else if(computerChoice <0.80 && =>0.60 {
computerChoice = "lizard";
}else {
computerChoice = "Spock";
}