title: How do I generate random numbers within a range
body: <pre><code>computerTotal = (int) Math.ceil(Math.random() * 21);
  </code></pre>
  
  <p>Can someone show me how to get 16 - 21 random number I keep getting errors when i try to implement the Math.floor function... As you can see i'm not very good at putting functions within functions.</p>
  
  <p>Many Thanks!</p>