Fractals and distributions on the $N$-torus