Manual:$wgExtraRandompageSQL/en

As of 1.16, the hook provides a more flexible interface to modify the selection criteria.

Details
Filter for Special:Randompage. Part of a WHERE clause. Part of a WHERE clause.

This variable can be used to bias or change the nature of the "random" page search. For example, to prevent the Main Page from showing as a randomly selected page, set: