Generate range using IntStream API