private void fillArray(Object array, Random random, int size)
    {
        int arraySize = Array.getLength(array);
        for (int i = 0; i < arraySize; ++i) {
            Class comp = array.getClass().getComponentType();
            if (comp.isArray()) {
                fillArray(Array.get(array, i), random, size);
            }
            else {
                Array.set(array, i, generator.arbitrary(random, size));
            }
        }
    }