A method of evaluation of the degree of inhomogeneity of the spatial distribution of matter is presented. It may be used to evaluate the most common form of spatial inhomogeneities in which fine particles, their aggregates or metallic islands are present in an otherwise homogeneous medium. Three micrographs of gold films having a variety of structures were examined with this method. All of them show deviations from randomness towards an inhomogeneous spatial distribution of islands.