Generate a list of numbers, choose the first and last numbers and the step between consecutive numbers