We have developed an algorithm that numericaly computes the dimension of an extremely inhomogeneous matter distribution, given by a discrete hierarchical metric. With our results it is possible to analise how the dimension of the matter density tends to d = 3 , as we consider larger samples.