Module:Randtext
跳到导航
跳到搜索
local getArgs = require('Module:Arguments').getArgs local p = {} function p._main(args) math.randomseed(os.time()) local args_count = 0 for k, v in pairs(args) do args_count = args_count + 1 end return args[math.random(args_count)] end function p.main(frame) local args = getArgs(frame, {wrappers = 'Template:Randtext'}) return p._main(args) end return p