@Test
    public void testCreateArray() {
        System.out.println("createArray");
        CosineInterpolator cosInterp = new CosineInterpolator();
        LinearInterpolator linInterp = new LinearInterpolator();
        for (int i = 0; i < 100; i++) {
            int size = 500;
            double p = Math.random() * .25 + .25;
            int octaves = 1 + (int) (Math.random() * 100);
            Interpolator interp = Math.random() > .5 ? cosInterp : linInterp;
            Perlin1d instance = new Perlin1d(p, octaves, (int) (Math.random() * Integer.MAX_VALUE), interp);
            double[] result = instance.createArray(size);
            for (int j = 1; j < size; j++) {
                assertEquals(result[j], result[j - 1], 0.15);
            }
        }
    }