Skip to content

Instantly share code, notes, and snippets.

@bernardop
Created April 27, 2011 20:46
Show Gist options
  • Select an option

  • Save bernardop/945169 to your computer and use it in GitHub Desktop.

Select an option

Save bernardop/945169 to your computer and use it in GitHub Desktop.
System.Random RandNum = new System.Random();
checkedNum = RandNum.Next(1, 3).ToString();
List<int> rands = new List<int>();
for (int x = 1; x <= Convert.ToInt16(checkedNum); x++)
rands.Add(RandNum.Next(1, 76));
for (int x = 1; x <= 76; x++)
{
if (rands.Contains(x) && Q205.Choices[x - 1].ShowChoice)
helper += "Q205_" + x + "=1;";
else
helper += "Q205_" + x + "=;";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment