generate path with monte-carlo method