function randomArr(iAll,iNow){
	var arr = [];
	var newArr = [];
	for(var i=0;i<iAll;i++){
		arr.push(i);
	}
	for(var i=0;i<iNow;i++){
		newArr.push(arr.splice(Math.floor(Math.random()*arr.length),1));
	}
	return newArr;
}