Random sampling (Monte Carlo) techniques in neutron attenuation problems--I.