NUMERICAL SIMULATION OF RANDOM PATHS WITH A CURVATURE-DEPENDENT ACTION