Manual:Random page

A random page can be viewed via Special:Random. This uses the wfRandom function, which is capable of avoiding duplicate values for up to approximately4,611,686,014,132,420,609 (i.e., ≈ (231 - 1)(231 - 1)) articles, and the page_random values from the page table. The SpecialRandomGetRandomTitle hook can be used to modify the selection criteria. The $wgExtraRandompageSQL configuration setting was used as a filter, but has been deprecated in v1.16. $wgContentNamespaces also affects random page selection.