title: Errors while trying to get a basic dice program to work
body: <p>I'm sure this is trivial, but I can't figure it out. My teacher just showed us how to create random numbers using a .Next(); statement last night and I was told to write an assignment that stimulates two dice rolls and compares them. I wrote out the code and everything was working fine until I added dice2 to my console.writeline. What am I missing here? </p>
  
  <p>Once I added dice2 I got the following errors and they all disapear when I remove dice2.</p>
  
  <ol>
  <li>) expected</li>
  <li>; expected</li>
  <li>Invalid expression term ')'</li>
  <li>Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement.</li>
  </ol>
  
  <p>Here is my code</p>
  
  <pre><code>Random m = new Random();
  Random m1 = new Random();
  string again;
  
  do
  {
  
      int dice1 = m.Next(1, 6);
      int dice2 = m1.Next(1, 6);
  
      if (dice1 == 6 &amp;&amp; dice2 == 6)
      {
          Console.WriteLine("You rolled boxcars");
      }
      else if (dice1 == 1 &amp;&amp; dice2 == 1)
      {
          Console.WriteLine("You rolled snake-eyes");
      }
      else
      {
          Console.WriteLine("You rolled a {0} and a {1}", dice1 dice2);
      }
          Console.WriteLine("Again? (y/n)");
      again = Console.ReadLine();
  
  } while (again == "y");
  </code></pre>
  
  <p>edit</p>
  
  <p>After adding the comma I noticed that I was getting the same values so after doing some research I deleted Random m1 = new Random(); and changed int dice2 = m1.Next(1, 6); to int dice2 = m.Next(1, 6); and it worked. I then realized that it wasn't giving me any 6 values so I changed it to (1, 7) and it worked perfectly</p>