function randomImage () {
    var i = Math.random() * 320;
    i = Math.round(i) + 1;
    window.location = i.toString() + '.html';
}