Quantcast
Viewing latest article 1
Browse Latest Browse All 3

Dice Roll Game help

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.


Viewing latest article 1
Browse Latest Browse All 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>