In this article, we consider the existence of solutions to the Sturm–Liouville differential equation with random impulses and boundary value problems. We first study the Green function of the Sturm–Liouville differential equation with random impulses. Then, we get the equivalent integral equation of the random impulsive differential equation. Based on this integral equation, we use Dhage’s fixed point theorem to prove the existence of solutions to the equation, and the theorem is extended to the general second order nonlinear random impulsive differential equations. Then we use the upper and lower solution method to give a monotonic iterative sequence of the generalized random impulsive Sturm–Liouville differential equations and prove that it is convergent. Finally, we give two concrete examples to verify the correctness of the results.