

def random(pages=1):
    '\n  Get a list of random Wikipedia article titles.\n\n  .. note:: Random only gets articles from namespace 0, meaning no Category, User talk, or other meta-Wikipedia pages.\n\n  Keyword arguments:\n\n  * pages - the number of random pages returned (max of 10)\n  '
    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

dataset/ETHPy150Open goldsmith/Wikipedia/wikipedia/wikipedia.py random/original