C#,
When i change your Random Generator loop to:
for (int d = 0; d < dice; d++)
{
int randomIndex = rnd.Next(0,6);
int temp = diceRoll[randomIndex];
diceRoll[randomIndex] = rnd.Next(1,7);
diceRoll[d] = temp;
}
numers are repeated. But like WhTurner33 said this here's for SmallBasic and you should ask over here.
Btw: My guess may also be completely wrong, so better don't count on it and ask people at the C# forum.