Module:Did you know

local make_wrapper_function = require('Module:Utils').make_wrapper_function

local p = {}

math.randomseed(mw.site.stats.edits + mw.site.stats.pages + os.time + math.floor(os.clock * 1000000000))

p.items = { "that ROBLOX was previously named Dynablox, and dynablox.com redirects to roblox.com?"; "that from 2009 to 2013, there used to be a subforum on the ROBLOX forums called \"Hi, I'm new\" which allowed players to welcome themselves to the ROBLOX community?"; "that in 2007 ROBLOX attempted making shoes, but they didn't work out and were never published?"; "that ROBLOX was created in 2006, and didn't even have online capabilities?"; "that Cezza321 is the original creator of The Roblox Assault Team?"; "that builderman's original name was BuilderMan?"; "that Miked/Ultimate Paintball was the first place to have 2 million visits?"; "that MEGA places were officially introduced on August 11, 2011?"; "that there used to be an ambassador program that allowed users to get tickets daily for promoting ROBLOX?"; "that the username of the first user was Admin?"; "that shirts and pants weren't invented until April 2008?"; "that Shedletsky was previously named Telamon?"; "that miked was the first user to achieve one million place visits?"; "that 1dev2's place Welcome to the Town of ROBLOXia was the first place to get 10 million visits?"; "that stickmasterluke was the first player to accumulate 10 million place visits in total?"; "that stickmasterluke wasn't originally an administrator and finally became one four years after initially joining ROBLOX?"; "that groups were first introduced in July 2009?"; "that before ROBUX, ROBLOX points were the main currency, and you obtained them from minigames?"; "that hair, body parts, hats, faces, shirts, and gear were mentioned on a March 2007 blog post?"; "that gooblox.com is a domain that leads to ROBLOX, and was mentioned in an April Fools joke?"; "that there was a Domino Rally Building Contest in 2007?"; "that comments, sparkles, and email verification were added on the same day, April 2, 2008?"; "that on April 1, 2012, the ROBLOX website was compromised by DracoSwordMaster after he was given access to the admin section of the website by Leav?"; "that the last heads were released in February 2009?"; "that there were, as of December 15, 2012, six items that were only available to users who are 13 years or older, all of which are ranged gears that are realistic firearms and five of which were actual World War II-era weapons?"; "that out of the forty users who have the most place visits, five users, Pieperson50, Tadcool, Coolwhip900, Supercolin, and Telaluchiha1, have used the means of deceptive advertising in order to obtain their place visits, and four (all except Telaluchiha1) were known to scam users?"; "that there were sound files from the popular 2007 first person shooter Team Fortress 2 uploaded into ROBLOX that are still used today? All of these sounds were uploaded in 2009 by Clockwork before the ability for users to upload their own sound clips was removed. There are no sounds uploaded into ROBLOX from newer weapons, such as the Pretty Boy's Pocket Pistol and the Quick-Fix." }

function p.random_item return p.items[math.random(#p.items)] end

function p._random_items(args) local num = tonumber(args[1]) local set, items = {}, {} for _ = 1, num do		set[p.random_item] = true end for item in next, set do		table.insert(items, item) end return items end

p.random_items = make_wrapper_function(p._random_items)

function p._list_random_items(args) return '* ' .. table.concat(p._random_items(args), '\n* ') end

p.list_random_items = make_wrapper_function(p._list_random_items)

return p