Module:Random: Difference between revisions

Content deleted Content added
rework the number function
fix English fail
Line 91:
 
function p._randomizeToText(args)
-- Randomizes a list and concatenates the result, text-style. Accepts separator and conjugationconjunction arguments.
local list = makeRandomList(args)
local sep = makeSeparator(args.sep or args.separator)
local conj = makeSeparator(args.conj or args.conjugationconjunction)
return mw.text.listToText(list, sep, conj)
end