RsD0p9BK
4/29/2015 - 5:25 AM

array_rand.js

// Get random item from JavaScript array

var item = items[Math.floor(Math.random()*items.length)];

// http://stackoverflow.com/questions/5915096/get-random-item-from-javascript-array