title: Code with random number generator and loop
body: <p>I use this random number generator and it works fine but then I needed a range (e.g. 16-20) of numbers but I can't get it to work. I have no idea what to do.</p>
  
  <pre><code>for (int i = 1; i &lt;= 1; i++) {
      int RandomAttack = (int) Math.random() * 20;
      System.out.println(RandomAttack);
  }
  </code></pre>
  
  <p>I need the simplest code there is.</p>