Jump to content

Module:RandomWikiverse

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by WMonkey8 (talk | contribs) at 18:16, 28 June 2025 (Created page with '-- Module:RandomWikiverse local p = {} -- Sample fictional entries local entries = { "The Great Banana War", "List of Intergalactic Donuts", "Timeline of Sock Puppet Empires", "Quantum Pigeon Theory", "History of the Moon Cheese Trade", "Notable Llamas in Politics", "Battle of the Pink Marshmallows", "Underground Gummy Bear Societies", "Treaty of Bubblewrapia", "Rise and Fall of Emperor Quack" } -- Main function function p.random(frame) -- Pick...'). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- Module:RandomWikiverse
local p = {}

-- Sample fictional entries
local entries = {
	"The Great Banana War",
	"List of Intergalactic Donuts",
	"Timeline of Sock Puppet Empires",
	"Quantum Pigeon Theory",
	"History of the Moon Cheese Trade",
	"Notable Llamas in Politics",
	"Battle of the Pink Marshmallows",
	"Underground Gummy Bear Societies",
	"Treaty of Bubblewrapia",
	"Rise and Fall of Emperor Quack"
}

-- Main function
function p.random(frame)
	-- Pick a random entry from the list
	math.randomseed(os.time())
	local choice = math.random(#entries)
	return entries[choice]
end

return p