Langevin equation of motion for electrons in an inhomogeneous plasma