title: Generating a random number between multiple ranges
body: <p>I understand how to make a random number which is between two numbers:</p>
  <pre><code>1 + (int)(Math.random() * ((10 - 1) + 1))
  </code></pre>
  <p>or</p>
  <pre><code>min + (int)(Math.random() * ((max - min) + 1))
  </code></pre>
  <p>But how do I go about generating a random number which falls into multiple ranges?</p>
  <p>For example: number can be between 1 to 10 or between 50 to 60</p>