Extension:Randomrootpage

The Random Root Page extension allows to display of a random root page. The regular Special:Random is not suitable for wikis (such as Wikibooks) which use a subpage hierarchy. This extension can be used as a substitute (so, for example, it can be used to show "random books" in Wikibooks, instead of random pages).

Installation
Download the extension and save the files in a folder named Randomrootpage under your extensions folder. Then add a line to LocalSettings.php like: