C# Dice application, with die images
<p>The question: Create an application that simulates rolling a pair of dice. When the user clicks a button, the application should generate two random numbers, each in the range of 1 through 6, to represent the value of the dice. Use PictureBox controls to display the dice.</p>

<p>I currently have 6 picture boxes with the picture boxes named "dice1PictureBox", "dice2PictureBox" etc, up to 6.</p>

<p>Here is the code I have written so far. I am completely lost at this point. I am also very new at programming, any help is greatly appreciated. Thank you in advance.</p>

<pre><code>    private void rollButton_Click(object sender, EventArgs e)
    {
        int diceOne;
        int diceTwo;

        Random rand = new Random();

        diceOne = rand.Next(3);

        if (diceOne == 0)
        {
            diceOne.Visible = true;
        }
        else (diceOne == 1)
        {
            diceOne.Visible = true;
        }
         else (diceOne == 2)
        {
            diceOne.Visible = true;
        }

        diceTwo = rand.Next(4) + 6;

        if (diceOne == 3)
        {
            diceOne.Visible = true;
        }
        else (diceOne == 4)
        {
            diceOne.Visible = true;
        }
         else (diceOne == 5)
        {
            diceOne.Visible = true;
        }
    }
}
</code></pre>

<p>} </p>
