Introduction#
Generate a sequence of consecutive integers within a specified range.
public static System.Collections.Generic.IEnumerable<int> Range (int start, int count);
Where:
start
The value of the first integer in the sequencecount
The number of sequential integers to generate
Example#
Generate 5 numbers starting from 2:
Enumerable.Range(2, 5);