int (final IterationState it, final ArrayState state) { final int recordSizeInInts = state.recordSizeInInts; final int[] array = state.array; int consumer = 1; final int offset = recordSizeInInts * it.nextRandom(); for (int recordField = 0; recordField < recordSizeInInts; recordField++) { consumer += array[offset + recordField]; } return consumer; }