title: C# Dice Roll Program With Images
body: <p>i am trying my best to do this program which is to make a program that lets the user to roll two dices as many as it wants, but the dice rolled can not be shown as numbers but as a image.</p>
  
  <p>such as</p>
  
  <p>[o]</p>
  
  <p>for a die roll of 1.</p>
  
  <p>i havent made the loop code for the program yet and i only know how to make the random numbers for the rolls, i just can't figure out how to make the arraylist for the images and make the code to actually use the images instead of numbers... if you know what i mean.</p>
  
  <p>here is my code so far, thanks for the help!</p>
  
  <pre><code>        int[] DiceUno = new int[6];
          int[] DiceDos = new int[6];
          Random rnd = new Random();
  
          Console.WriteLine("This program will allow you to roll two dice");
          Console.WriteLine("\nAs many times as you want");
          Console.WriteLine("\n\nWhen you want to exit the program, please type (exit)");
          Console.WriteLine("\nPress any key to begin rolling");
          Console.Read();
  
  
          for (int i = 0; i &lt; 1; i++)
          {
              int diceRoll = 0;
              diceRoll = rnd.Next(6);
              DiceUno[diceRoll]++;
              Console.WriteLine("Dice 1 is rolled a: {0}", diceRoll + 1);
              diceRoll = rnd.Next(6);
              DiceDos[diceRoll]++;
              Console.WriteLine("Dice 2 is rolled a: {0}", diceRoll + 1);
  
          }
  
  
  
  
  
      }
  }
  </code></pre>
  
  <p>}</p>