public void RandomizeChoices() { List <string> newChoices = new List <string>(); while (Choices.Count > 0) { int choiceToMove = random.Next(Choices.Count); newChoices.Add(Choices[choiceToMove]); Choices.RemoveAt(choiceToMove); } Choices = newChoices; }
/// <summary> /// Removes the choice at the specified index. /// </summary> /// <param name="index">The index of the choice to remove.</param> public void RemoveChoice(int index) { var choice = Choices[index]; Choices.RemoveAt(index); Consequences.RemoveAt(index); if (OnRemoveChoice != null) { OnRemoveChoice(index, choice); } }