Mira a ver si funciona esto:
Código Javascript
:
Ver originalvar fdw = ['uno', 'dos', 'tres'], arr = fdw;
function noRepetir(list){
var num = Math.floor(Math.random()*list.length), str = arr[num];
arr = arr.length ? arr : list;
arr.splice(num, 1);
return str;
}
Saludos (: