var rnd = function(k,min,max,count){
if(!count) count = 10000;
for(var i = 0; i < count; i++){
var val = parseInt(Math.random()*k);
if(val >= min && val <=max) return val;
}
return min;
}
var a = ["1","2","3","4","5"];
var vol = 10;
var arr = [];
for(var i = 0; i < vol; i++){
var k = rnd(10,0,a.length-1);
arr.push(a[k]);
}
alert(arr);