randomMRP.py
def step(self):
        """
            Return the immediate reward and the random next state.
        """
        r = self.reward(self.current_state)
        next_state = self.next_state(self.current_state)

        self.current_state = next_state  # update the current state

        return r, next_state

            Return the immediate reward and the random next state.
        
Return the immediate reward and the random next state.
Return the immediate reward and the random next state .
def step(self):
        r = self.reward(self.current_state)
        next_state = self.next_state(self.current_state)
        self.current_state = next_state  
        return r, next_state
def step ( self ) : r = self . reward ( self . current_state ) next_state = self . next_state ( self . current_state ) self . current_state = next_state return r , next_state
Return the immediate reward and the random next state.
Return the immediate reward and the random next state .
"""
            Return the immediate reward and the random next state.
        """ # update the current state
self