SO - 18931903
by Arun P Johny
HTML
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
JavaScript
var items = new Array('the','and','to','a');
$('li').each(function(){
var item = items.splice(Math.floor(Math.random() * items.length), 1);
$(this).append(item);
});