User:BabylonAS/Modules/RandomFact

-- Random quotes module -- Created by Naista2002 on September 24, 2014

local p = {}

function p.randquote(f) -- Arguments local args = f:getParent.args -- Quotes local quotes = {} -- Initial text local starttext = "" for i, v in ipairs(args) do       if i == 1 then starttext = v       else table.insert(quotes, v)       end end return "" .. starttext .. " " .. quotes[math.random(#quotes)] .. " " end

return p