We propose a method to obtain the degree of heterogeneity of samples of cement or concrete due to the presence of cracks, bubbles or simply the native ingredients of the material. A number of samples are prepared in a cylindrical shape, and their transverse vibration resonant frequencies are measured. A given mode of oscillation will correspond to slightly different frequencies in different samples due to the random nature of the system. For example, for a given mixing formula, the ratio of sand to cement may be known, but the precise position of sand grain cannot be determined. We studied the statistical distributions of frequencies for each mode and found that there exists a relationship between the width of the probability functions and the degree of heterogeneity.