title: (Javascript) Random integer between the output of two functions
body: <p>Hello I am working on getting a random whole number between the output of two functions my example is below, I do not get an error but it will not work.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function getRndInteger(...args) {
    const [low, high] = [Math.min(...args), Math.max(...args)];
    return Math.floor(Math.random() * (high - low)) + low + 103;
  }
  function age(h){
   var h = prompt ("How old are you?");
   return h;
  }
  function videogames(i){
   var i = prompt ("How many hours of video games have you played last month?");
   return i;
  }
  document.write (getRndInteger(age(h),videogames(i)));</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have to write it out this way because the age and videogames part must be in the form of a function, is this possible?</p>