public static Session BuildNewSession() { Session session = new Session(); for (int i = 0; i < ABVFeedback.Utils.Settings.NumberOfTrials; i++) { session.Trials.Add(BuildCurrentTrial(i)); } session = ShuffleSessionTrials(session); return session; }
private static Session ShuffleSessionTrials(Session session) { session.Trials = session.Trials.OrderBy(item => r.Next()).ToList(); return session; }