Arrray de la elección aleatoria JS

function choose(choices) {
  var index = Math.floor(Math.random() * choices.length);
  return choices[index];
}
Successful Salmon