choose randome selection from array code example
Example 1: javascript math.random from list
var myArray = [
"Apples",
"Bananas",
"Pears"
];
var randomItem = myArray[Math.floor(Math.random()*myArray.length)];
Example 2: js random string from array
const randomElement = array[Math.floor(Math.random() * array.length)];