]<script>
var baseNum=[];
for(var i= 0;i<100;i++){
random = Math.floor(Math.random()*i);
baseNum.push(random);
}
Array.prototype.cleanSort = function(){
var clean = [];
this.sort(function(a,b){return a-b;});
for(var i=0;i<this.length;i++){
if(this[i]==this[i+1]){
continue;
}else{
clean.push(this[i]);
}
}
return clean;
}
document.write(baseNum.cleanSort().join('<br>'));
</script>