Last modified: 2008-01-28 13:58:24 UTC
Created attachment 4592 [details] ApiQueryRandom Basically add the functionality of Special:Random to the API with the addition of a parameter to return more then one result. I've (tried) to create a working implementation but I'm sure my lack in knowledge of WP internals severely screwed it up. I'll
Created attachment 4593 [details] Patch to add it to the API
Added in r30217. (In reply to comment #0) > I've (tried) to create a working implementation but I'm sure my lack in > knowledge of WP internals severely screwed it up. Your patch contained some duplicate code and only listed redirects (page_is_redirect != 0 rather than = 0), but I've seen far worse.