C# Rpg Random Enemy Assignment
<p>I am trying to assigned a Enemy enemy class instance to a random newenemy instance. 
For example: </p>

<pre><code>public Enemy GetEnemy()
    {
        Random rand = new Random();
        Enemy newenemy = new Enemy(string.Empty, 0, 0, 0, 0, 0);

        if (Main.level == 1)
        {
            int z = rand.Next(0, 2);

            if (z == 0)
            {
                newenemy = new Enemy("Chicken", 50, 0, 4, 11, 32); 
            }

            else if (z == 1)
            {
                newenemy = new Enemy("Common Goblin", 67, 0, 8, 14, 36); 
            }

            else if (z == 2)
            {
                newenemy = new Enemy("Rabbit", 50, 0, 15, 25, 9); 
            }
        }

        return newenemy;
    }
</code></pre>

<p>Which is then used in my Battle function: (I'll post some cause it is somewhat long)</p>

<pre><code>if (whathappen == 2 || whathappen == 4 || whathappen == 6 || whathappen == 8 || whathappen == 10) //battle code
        {

            Console.Write("You were engaged by the enemy!  \nYou are fighting an enemy {0}\n", GetEnemy().name);

            while (Main.health &gt; 0 || GetEnemy().health &gt; 0)
            {
                Console.Write("1) Attack With Weapon ");
                int choose;
                int.TryParse(Console.ReadLine(), out choose); 

                if (choose == 1)
                {
                    int miss = r.Next(0, 6);

                    if (miss &lt; 6)
                    {
                        int totaldamage = (r.Next(0, Main.RHand.damage) + r.Next(0, Main.LHand.damage)) - GetEnemy().armor;
                        GetEnemy().health -= totaldamage;
                        Console.WriteLine("You attack the {0} with a {1} and deal {2} damage!", GetEnemy().name, Main.RHand.name, totaldamage);
                        Console.WriteLine("The {0} has {1} health remaning!", GetEnemy().name, GetEnemy().health);
</code></pre>

<p>However, when I am testing my game, no enemy is assigned during the battle and I don't understand why.  This is the output: </p>

<p>You were engaged by the enemy!
You are fighting an enemy! (The enemy name should come after enemy)</p>

<p>You attack the (name should be here again) with a Bronze Dagger and deal 15 damage!</p>

<p>Can anyone explain why this is happeneing?</p>
