Original Post
Can someone please point out where I'm going wrong with this code & how to fix it: All I want is a dice that can be thrown a number of times & the results added up to give a final total. This is doing my head in -every time I go to add some new thing to my project I end up wasting 3 - 4 hours banging my head against a simple little brick wall like this. I'm beginning to wonder if I've actually learned anything at all these last few weeks.
int totalDice = 0;
for (int i = 0; i < 3; i++)
{
Random dice = new Random();
int RandomNumber = dice.Next(1, 6);
totalDice += dice; //compiler doesn't like this
}