title: Generate a random even number inside a range?
body: <p>Here's the format I'm following: </p>
  
  <pre><code> int randomNum = rand.nextInt((max - min) + 1) + min;
  </code></pre>
  
  <p>So here's my code. I'm trying to get a random even number between 1 and 100:</p>
  
  <pre><code> Random rand = new Random(); 
   int randomNum = rand.nextInt((100 - 2) + 1) + 2;
  </code></pre>
  
  <p>I saw one solution is to multiply the number by 2, but that breaches the intended range.</p>
  
  <p>I thought of doing a bunch of if statements to solve this, but it seems overly complex. Is there a relatively simple solution?</p>