We consider boundary-value problems for differential equations of second order containing a Brownian motion (random perturbation) and a small parameter and prove a special existence and uniqueness theorem for random solutions. We study the asymptotic behaviour of these solutions as the small parameter goes to zero and show the stochastic averaging theorem for such equations. We find the explicit limits for the solutions as the small parameter goes to zero.