randomMRP.py
def next_state(self, s):
        """
            Return a sample next state when it is in state s.
        """
        return np.random.choice(self.state_space, size=None, p=self.trans_prob[s, :])

            Return a sample next state when it is in state s.
        
Return a sample next state when it is in state s.
Return a sample next state when it is in state s .
def next_state(self, s):
        return np.random.choice(self.state_space, size=None, p=self.trans_prob[s, :])
def next_state ( self , s ) : return np . random . choice ( self . state_space , size = None , p = self . trans_prob [ s , : ] )
Return a sample next state when it is in state s.
Return a sample next state when it is in state s .
"""
            Return a sample next state when it is in state s.
        """
self
s