code: def generate_traj(self, N, start=None, stop=None, dt=1):
          
          from msmtools.generation import generate_traj
          return generate_traj(self._P, N, start=start, stop=stop, dt=dt)
docs: Generates a random trajectory of length N with time step dt