Influence of randomness on the effective dielectric function of metal-dielectric composites for metamaterial purposes