def EndRandom(self): # This function is responsible for returning the RNG to the same state # as when it entered the AI random.setstate(self.RNG_State)