title: Passing variables to a Javascript modular pattern method
body: <p>I would like to do something like the below code. Obviously this doesn't work as this does not allow you to pass in variable, which in the case below, is min and max.</p>
  
  <p>Is it at all possible to do so? And if so, how?</p>
  
  <p>Thanks.
  J.</p>
  
  <pre><code>var utils = (function() {
  
      function randomRange(min, max) {
          return ((Math.random() * (max - min)) + min);
      };
  
      return {
          randomRange : randomRange(min, max);
      };
  
  }());
  
  utils.randomRangeRound(20,5);
  </code></pre>