I'm using this to get a random item from my array (and append it to each list item)
$('li').each(function(){
var items = Array('the','and','to','a');
var item = items[Math.floor(Math.random()*items.length)];
$(this).append(item);
});
I'm sure this is a quick thing but I don't really know where to look. How can I make sure there are no repeating items?