title: Is a function that calls Math.random() pure?
body: <p>Is the following a pure function?</p>
  
  <pre><code>function test(min,max) {
     return  Math.random() * (max - min) + min;
  }
  </code></pre>
  
  <p>My understanding is that a pure function follows these conditions:</p>
  
  <ol>
  <li>It returns a value computed from the parameters</li>
  <li>It doesn't do any work other than calculating the return value</li>
  </ol>
  
  <p>If this definition is correct, is my function a pure function? Or is my understanding of what defines a pure function incorrect?</p>