Manual:Hooks/SpecialRandomGetRandomTitle

Details
Allows extensions to modify the selection criteria used in Special:Random and subclasses of it.


 * &$randstr: A random number string, generated by wfRandom
 * &$isRedir: Boolean, whether or not the page to be selected should be a redirect
 * &$namespaces: An array of namespace indexes to get the page from
 * &$extra: An array of extra SQL statements added to the WHERE clause of the query
 * &$title: A Title object to redirect to if the hook returns false (must be set if the hook returns false)