code: def random(pages=1):
    '''
    Get a list of random Wikipedia article titles.
  
    .. note:: Random only gets articles from namespace 0, meaning no Category, User talk, or other meta-Wikipedia pages.
  
    Keyword arguments:
  
    * pages - the number of random pages returned (max of 10)
    '''
    #http://en.wikipedia.org/w/api.php?action=query&list=random&rnlimit=5000&format=jsonfm
    query_params = {
      'list': 'random',
      'rnnamespace': 0,
      'rnlimit': pages,
    }
  
    request = _wiki_request(query_params)
    titles = [page['title'] for page in request['query']['random']]
  
    if len(titles) == 1:
      return titles[0]
  
    return titlef random(pages=1):
    '''
    Get a list of random Wikipedia article titles.
  
    .. note:: Random only gets articles from namespace 0, meaning no Category, User talk, or other meta-Wikipedia pages.
  
    Keyword arguments:
  
    * pages - the number of random pages returned (max of 10)
    '''
    #http://en.wikipedia.org/w/api.php?action=query&list=random&rnlimit=5000&format=jsonfm
    query_params = {
      'list': 'random',
      'rnnamespace': 0,
      'rnlimit': pages,
    }
  
    request = _wiki_request(query_params)
    titles = [page['title'] for page in request['query']['random']]
  
    if len(titles) == 1:
      return titles[0]
  
    return titles
docs: Get a list of random Wikipedia article titles.
  
    .. note:: Random only gets articles from namespace 0, meaning no Category, User talk, or other meta-Wikipedia pages.
  
    Keyword arguments:
  
    * pages - the number of random pages returned (max of 10)