Answers for "random choice js array"

0

random choice js array

function choose(choices) {
  var index = Math.floor(Math.random() * choices.length);
  return choices[index];
}
Posted by: Guest on July-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language