code: def random( self ):
          
          j = np.searchsorted( self.cumulative_probabilities(), random.random() )
          return self.jumps[ j ]
docs: Select a jump at random with appropriate relative probabilities.
  
          Args:
              None
  
          Returns:
              (Jump): The randomly selected Jump.