We discuss diffusion-controlled drug release from slabs or thin films. Analytical and numerical results are presented for slabs with flat surfaces, having a uniform thickness. Then, considering slabs with rough surfaces, the influence of a non-uniform slab thickness on release kinetics is numerically investigated. The numerical release profiles are obtained using Monte Carlo simulations. Release kinetics is quantified through the stretched exponential (or Weibull) function and the resulting dependence of the two parameters of this function on the thickness of the slab, for flat surfaces, and the amplitude of surface fluctuations (or the degree of thickness variability) in case of roughness. We find that a higher surface roughness leads to a faster drug release.