I have for loop that alerts strings from array, I wonder how can I alert them randomly, so it will run gamesNames.length times and display them in different-random order each time (without duplicating them) in JavaScript ?
for (var i = 0; i < gamesNames.length; i++) {
alert (gamesNames[i].Name + gamesNames[i].year );
}
here is a Link http://www.javascriptkit.com/javatutors/arraysort.shtml to the main idea, in Javascript
and here is the Code
I hope this helps.