Randomly generated numbers won't work after while loop is applied
<p>I am trying to make a combat sequence, but I need to repeat the actual combat. Yet, the HP and enemyHP won't seem to subtract from the randomly generated numbers to give the total after first loop. </p>

<p>I am sorry, if this doesn't make sense. I'm not really good at explaining things...</p>

<p>Here is the code:</p>

<pre><code>    import java.util.Random;
    import java.util.Scanner;

    public class Hayyan {

       public int hp = 100;
       public int choice = 0;

           public static void main(String[] args) {

                 combatHayyan bob = new combatHayyan();
                 Hayyan junl = new Hayyan();

                 while(junl.choice &lt; 10){       
                     System.out.println("Choose a weapon to attack with, type sword for a sword, or axe for an axe ");
                     bob.attack();
                     bob.defend();
                     System.out.println();

                     if(junl.hp &lt; 0 || bob.enemyHP &lt; 0){
                           junl.choice = 10;
                     }

             }
       }
   }

class combatHayyan {

public int enemyHP = 50;
public int yourTotal;

public void attack(){

    weapons weapon = new weapons();

    Scanner bob = new Scanner(System.in);
    switch(bob.nextLine()){

    case "sword":

        weapon.sword();
        System.out.println("Enemy now has " + weapon.total + "HP left!");
        break;


    case "axe":

        weapon.axe();
        System.out.println("Enemy now has " + weapon.total + "HP left!");
        break;

    }
}

public void defend(){

    Hayyan lost = new Hayyan();

    Random bob = new Random();
    int randomness = bob.nextInt(11) + 10;
    yourTotal = lost.hp - randomness;
    System.out.println("You now have " + yourTotal + "HP left!");

    }
  }

class weapons {

public int total;

public void sword(){

    int bob = 5 + (int)(Math.random() * ((10 - 5) + 1));
    combatHayyan llama = new combatHayyan();
    total = llama.enemyHP - bob;

}

public void axe(){

    int randomGenerate = 5 + (int)(Math.random() * ((10 - 5) + 1));
    combatHayyan llama = new combatHayyan();
    total = llama.enemyHP - randomGenerate;


}
</code></pre>

<p>}</p>