title: Initiating a random amount of instances of a class with different names?
body: <p>How would I go about Initiating random amount of instances of a class with different names?</p>
  
  <p>The example scenario I have was for a rogue-like-text-adventure game. You walk into a room and a random number of enemies generate, the enemies are instances of an enemy class. </p>
  
  <p>They all have different instance names so that when you attack one of them then only that one enemy loses health. </p>
  
  <p>I've gotten as far as making a random generator, putting it into a for loop and then calling a new class instance called "classInstance1" but it of course overwrites it, so if I were to reduce the value of "classInstance1.hp" then that would reduce the health of all the enemies in the room. </p>
  
  <p>I need a way to know how to generate multiple instances with different instance names ("<code>classInstance2</code>", "<code>classInstance3</code>" etc.) so I can then use/manipulate all the individual instances.</p>
  
  <p>Is there a specific way of going about this?  </p>