private void Shufflebutton_Click(object sender, EventArgs e)
{
List<int> myList = new List<int>();
int[] order;
Random random = new Random();
StringBuilder sb = new StringBuilder();
foreach (String suit in new string[] { "a", "b" })
{
foreach (string value in new String[] { "2", "3", "4", "5" } )
{
sb.Append(suit);
sb.Append(value);
sb.Append(" ");
}
sb.Append(Environment.NewLine);
}
myList = sb.ToList(); // error at this line
order = new int[myList.Count];
for (int i = 0; i <myList.Count; i++)
{
order[i] = i;
}
for (int i = 0; i < order.Length - 1; i++)
{
int rnd = random.Next(i + 1, order.Length);
int temp = order[i];