Statistics for Effects of spatial fluctuations in the extragalactic background light on hard gamma-ray spectra