public static Field randomIpV4Field(final String name) {

        try {
            final ToIntFunction<Random> intSupplier = buildRandomNumberSupplier(0, 256);

            final ValueFunction valueFunction = (random, ignoredFaker) ->
                    String.format("%d.%d.%d.%d",
                            intSupplier.applyAsInt(random),
                            intSupplier.applyAsInt(random),
                            intSupplier.applyAsInt(random),
                            intSupplier.applyAsInt(random));
            return new Field(name, valueFunction);
        } catch (Exception e) {
            throw new RuntimeException(Utils.message(
                    "Error building randomIpV4Field, {}, {}", name, e.getMessage()), e);
        }
    }
A field that produces IP address conforming to [0-9]{1-3}\.[0-9]{1-3}\.[0-9]{1-3}\.[0-9]{1-3}

@param name Field name for use in the header
@return A complete {@link Field}
stroom-test-common/src/main/java/stroom/test/common/data/DataGenerator.java