title: JavaScript generate random number except some values
body: <p>I'm generating random numbers from 1 to 20 by calling <code>generateRandom()</code>. How can I exclude some values, say 8 and 15?</p>
  
  <pre><code>function generateRandom(min, max) {
      return Math.floor(Math.random() * (max - min + 1)) + min;
  }
  
  var test = generateRandom(1, 20)
  </code></pre>