1//get random value from array
2var colors = ["red","blue","green","yellow"];
3var randColor = colors[Math.floor(Math.random() * colors.length)];
4
1var textArray = [
2 'song1.ogg',
3 'song2.ogg'
4];
5var randomNumber = Math.floor(Math.random()*textArray.length);
6
7audioElement.setAttribute('src', textArray[randomNumber]);
8