function RandomItemFromArray(myArray) { return myArray[Math.floor(Math.random() * myArray.length)] } var fruit = [ "Apples", "Bananas", "Pears", ]; let fruitSample = RandomItemFromArray(fruit)