Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Promoted
c#Switch statement randomizer?
This is a part of my switch statement. When run it generates the same item from the A.list section. How can I fix it?
case 1: goldEarn = Convert.ToString(((rand.Next(1, 7) + rand.Next(1, 7) + rand.Next(1, 7)) * 100)) + "sp. \n" + A.item + "\n" + A.item + "\n";
1 Answer
Relevance
- Anonymous8 years agoFavorite Answer
Add input values corresponding rand.Next(1, 7)) .
Still have questions? Get your answers by asking now.