//Randomly generates an finite or infinite sequence public static IEnumerable <int> GetRandomSequence() { int random = _rng.Next(5) * 10; if (random == 0) { return(Sequences.GetFibonacciSequence()); } else { return(Sequences.GetIntegerRange(0, random)); } }