1var items = ['Yes', 'No', 'Maybe'];
2var item = items[Math.floor(Math.random() * items.length)];
1var groceries = [
2'milk',
3'coriander',
4'cucumber',
5'eggplant'
6]
7let mygroceries = groceries[Math.floor(Math.random() * groceries.length)]
8console.log(mygroceries)//This gives you any string from groceries
9
10
1var myArray = [
2 "Apples",
3 "Bananas",
4 "Pears"
5];
6
7var randomItem = myArray[Math.floor(Math.random()*myArray.length)];
1var textArray = [
2 'song1.ogg',
3 'song2.ogg'
4];
5var randomNumber = Math.floor(Math.random()*textArray.length);