Browse Source

comment

master
Nicholas Hayashi 3 years ago
parent
commit
f6b0986293
  1. 2
      lib/random.lua

2
lib/random.lua

@ -46,6 +46,8 @@ local function random(n, m)
local r local r
if n then if n then
-- @TODO there are some bugs with calling math.random or am.rand
-- with n or m values, so usually we should just avoid it... not sure what's it about yet
log('calling random with "n" %g', n) log('calling random with "n" %g', n)
if m then if m then
r = math.floor(R() * (m - n) + n) r = math.floor(R() * (m - n) + n)

Loading…
Cancel
Save