Monte Carlo simulation of ion motion in drift tubes