function getRndInteger(min, max) { var outcome; outcome = Math.floor(Math.random() * (max - min + 1) ) + min; //document.getElementById("out").value = outcome; return outcome; }