var red=[];
for(var i=0;i<6;i++){
var a=1 + parseInt(Math.random() * 33);
if(red.indexOf(a)===-1){
red[i]=a;
}else{
i--;
}
}
for(var j=1;j<red.length;j++){
for(var p=0;p<red.length-j;p++){
if(red[p]>red[p+1]){
var max=red[p];
red[p]=red[p+1];
red[p+1]=max;
}
}
}
var b=1 + parseInt(Math.random() * 16);
var green=[b];
var result=red.concat(green);
console.log(result);