int[] result = new int[length]; for ( int i=0; i<length; i++ ) { result[i]=begin + i; } return result;