When programming it\'s almost instinctive deciding when to use a for loop, or foreach, but what is the determining factors or problem space for choosing to use Enumerable.Range?
Enumerable.Range() is a generator, i.e. it is a simple and powerfull way to generate n items of some sort.
Enumerable.Range()
n
Need a collection with random number of instances of some class? No problem:
Enumerable.Range(1,_random.Next()) .Select(_ => new SomeClass { // Properties });