(已建立頁面,內容為 "local p = {} function p.main(frame) return math.random(frame.args[1] or 0, frame.args[2] or 1) end return p")
 
 
行 2: 行 2:
   
 
function p.main(frame)
 
function p.main(frame)
return math.random(frame.args[1] or 0, frame.args[2] or 1)
+
return math.random(frame.args[1] or frame:getParent().args[1] or 0, frame.args[2] or frame:getParent().args[2] or 1)
 
end
 
end
   

於 2021年7月1日 (四) 13:39 的最新修訂

此模組的說明文件可於模組:Rand/doc建立

local p = {}

function p.main(frame)
	return math.random(frame.args[1] or frame:getParent().args[1] or 0, frame.args[2] or frame:getParent().args[2] or 1)
end

return p
除非另有註明,否則社區內容均使用CC-BY-SA授權條款。