code: def get_random_submission(self, subreddit='all'):
          
          url = self.config['subreddit_random'].format(
              subreddit=six.text_type(subreddit))
          try:
              item = self.request_json(url,
                                       params={'unique': self._unique_count})
              self._unique_count += 1  # Avoid network-level caching
              return objects.Submission.from_json(item)
          except errors.RedirectException as exc:
              self._unique_count += 1
              return self.get_submission(exc.response_url)
          raise errors.ClientException('Expected exception not raised.')
docs: Return a random Submission object.
  
          :param subreddit: Limit the submission to the specified
              subreddit(s). Default: all