function randomvalue(high) {
    return 1 + Math.floor(Math.random() * high);
}

var imageNum=randomvalue(3);
