Implement _getRandomPath generator method