MediaWiki:Apihelp-query+random-example-simple/en

Return two random pages from the main namespace.