Icluded function to generate an integer sequence.