private static ToIntFunction<Random> buildRandomNumberSupplier(final int startInc,
                                                                   final int endExc) {
        try {
            Utils.checkArgument(endExc > startInc, "endExc must be >  startInc");

            final int delta = endExc - startInc;

            return (random) ->
                    random.nextInt(delta) + startInc;
        } catch (Exception e) {
            throw new RuntimeException(Utils.message("Error building randomNumberSupplier, {}", e.getMessage()), e);
        }
    }
A field populated with a random number (between minCount and maxCount) of
words separated by ' '. The words are picked at random from all the class
names in the 'java' package on the classpath
stroom-test-common/src/main/java/stroom/test/common/data/DataGenerator.java