Simulation of one-dimensional noisy Hamiltonian systems and their application to particle storage rings