class SeqNumberDataGenerators {

    public static DataGenerator<int[]> sequenceOfAscendingIntegers(int size, int lowerBound, int upperBound) {
        final int range = upperBound - lowerBound;
        return DataGenerator.fromContext(new Random(), random -> {
            int[] result = new int[size];
            for (int i = 0; i < size; i++) {
                result[i] = lowerBound + random.nextInt(range);
            }
            Arrays.sort(result);
            return Pair.of(random, result);
        });
    }

}