function random(nb) {
    return Math.floor(Math.random() * nb) + 1;
}

function change_bandeau() {
        var bandeau = random(6);
        document.getElementById("illustration").style.backgroundImage="url('fileadmin/templateOullins/images/bandeau/accueil/"+ bandeau +".jpg')";
}