Stochastic evolution equations within the context of both the Hamiltonian and Lagrangian formalisms