Pact – matching an array of integers

I’m using Pact and creating consumer tests. My response body for a specific request looks like:

PactDslJsonBody responseBody = new PactDslJsonBody()
                .stringType("response","success")
                .array("accounts")
                    .integerType()
                .closeArray()
                .asBody();

I want to modify this so it returns an array of random integers (not objects) with 10 or less elements (now it only returns one and provider expects to match only one). Is this possible?