Case:
Portal:Foo
Portal:Foo/item1
Portal:Foo/item2
Portal:Foo/item3
Portal:Foo/item4
anywhere
or even
Book
Book/chapter1
Book/chapter2
Book/chapter3
Book/chapter4
on Wikibooks
etc...
Now, Special:Random redirects (among others) to /itemX, /chapterX, etc. subpages which isn't good, especially on pages created from subpages, such as portals are, where such subpage could be eg. just POTD or so.
Maybe $wgRandomIgnoreSubpages global with default = true or even $wgRandomIgnoreSubpagesInNamespaces array of (0->1, 1->1, 2->0...) values could be added as well so in case any wiki would like to have the default ignore behavior overridable.
Version: 1.14.x
Severity: enhancement