Extension:RandomPageSettings

''As pointed out on the discussion page, this extension in it's current state contains some vulnerabilities, and should be rewritten. Feel free to help out!''

What can this extension do?
Enables the wiki administrator to control the behaviour of Special:Random.

Usage
In LocalSettings.php, add a variable $wgRandomPageSettings with the settings you want to do. Possible settingas are:

, to chose what namespaces to get random pages from, e.g.

, to get only pages in the same language as the current page, e.g.

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:

You are now ready to add settings with  in LocalSettings.php, as described above.