More languages
More actions
Created function for random numbers |
m Forgot to return export table |
||
| Line 9: | Line 9: | ||
return math.random(a,b) | return math.random(a,b) | ||
end | end | ||
return p | |||
Revision as of 22:46, 5 October 2022
local p = {}
function p.random(frame)
local parent = frame:getParent()
local a = parent.args[1]
local b = parent.args[2] or 100
return math.random(a,b)
end
return p