More languages
More actions
m (Using time in seconds of the os to generate more randomness) |
m (Using raw os.time() function) |
||
Line 2: | Line 2: | ||
function p.randomNumber(frame) | function p.randomNumber(frame) | ||
math.randomseed(os.time()) | |||
local min = tonumber(frame.args[1]) or 0 | local min = tonumber(frame.args[1]) or 0 | ||
local max = tonumber(frame.args[2]) or 100 | local max = tonumber(frame.args[2]) or 100 |