require('strict');local content = mw.title.getCurrentTitle:getContent or ; -- get the content of the list page
----------------------------< R A N D O M _ S O R T >--------------------------------------------------------
swaps two members of a sequence table. One member is indexed sequentially (starting at [1]), the other indexis randomly selected.
local function random_sort (frame) local source = setmetatable local r_idx;
for article in content:gmatch ('([^\r\n]+)[\r\n]+') do -- get an article title if not (article:match ('') or -- skip any line that has closing comment article:match ('