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