So the problem is that the switch is in the wrong spot -- it is in the inner loop (which does a count how many correct numbers you got). You need it to be outside that loop and in the loop (which loops over how many to test).
private void CheckLotto()
{
Array.Sort(myLotto);
Array.Sort(SelectedNumbers);
sevenRatt = 0;
sixRatt = 0;
fiveRatt = 0;
//How many times should we have a draw?
for (int k = 0; k < howMany; k++)
{
int match = 0;
//Got throw selctedNumbers array
for (int i = 0; i < SelectedNumbers.Length; i++)
{
//Go throw mylotto array
for (int j = 0; j < myLotto.Length; j++)
{
//Are thye same?
if (SelectedNumbers[i] == myLotto[j])
{
Console.Write("{0} ", SelectedNumbers[i]);
match++;
}//if
}//for
}//for
switch(match)
{
case 5:
fiveRatt++;
break;
case 6:
sixRatt++;
break;
case 7:
sevenRatt++;
break;
}// switch
} // for main
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…