/// <summary> /// Shuffles the answers of an exercise. /// </summary> /// <param name="answers">Answer array to be shuffled.</param> private void shuffleAnswers(DataAnswer[] answers) { for (int i = 0; i < answers.Length; i++) { DataAnswer temp = answers[i]; int random = Random.Range(i, answers.Length); answers[i] = answers[random]; answers[random] = temp; } }
public ComplexAnswer(bool success, string message, int code, DataAnswer data) : base(success, message, code) { this.data = data; }