title: RPG Damage Calculations?
body: <p>I am making a small RPG using Jcreator.</p>
  
  <p>I give whatever character you pick damage at the start, we will take the Swordsman as an example.</p>
  
  <p>I gave him 10 Damage and for the hitting damage I made the <code>int</code> <code>Hit</code>.</p>
  
  <p>My problem is that this random number is not working well for damage as it is giving me damage under the actual attack range.</p>
  
  <pre><code>Hit = 1 + (int) ((Math.random() * (Damage - 1)) +1);
  </code></pre>