function setRandomImage(id, n, src) {
   document.getElementById(id).src = src.replace("%n", Math.round(Math.random() * (n - 1)));
}
