How do I use a random number in my Fighter constructor? I want it to show me 3 random parameters from this one object.
Fighter Lucas = new Fighter (2, 4, 7);
earlier i made this random for 3 different methods:
Random rand = new Random ();
public int m = rand.nextInt(9) + 1;
Aucun commentaire:
Enregistrer un commentaire