@Override
    public void setRandomSeed(long seed)
    {
        r = new Random(seed);
        for (int i = 0; i < size; i++)
            for (int j = 0; j < size; j++)
                for (int k = 0; k < zsize; k++)
                    for (int d = 0; d < density; d++)
                        for (int e = 0; e < dimensions; e++)
                            grid[i][j][k][d][e] = r.nextDouble();
    }