Create a python function which generates a sequence of integers