Gravitational lensing with stochastic substructure: Effects of the clump mass function and spatial distribution