I have an array with list items :
var listArray = [];
$("ul li").each(function(){
listArray.push($(this));
});
var item = listArray[Math.floor(Math.random()*listArray.length)];
item.css({
"transform":"scale(1)"
});
and i shuffled the array as it mentioned in answers but still i am not able to pull the elements from it one by one in intervals
if you have a better idea how to do it please tell me.