Edit in JSFiddle

var arr = ['a','b','c'];
for(i=0; i<100; i++){
arr.sort(function(){ return Math.random() - Math.random(); });
document.write(arr[0], arr[1], arr[2] + "<br>");
}