Permalink
Browse files

random: fix range

  • Loading branch information...
1 parent 3e9ab2e commit 7edb8bf4b2f68ea9d6ec0d2453cb9ece373e9574 @fperrad committed May 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lua/lib/luamath.pir
View
@@ -417,7 +417,7 @@ LIST
unless null arg2 goto L3
u = lua_checknumber(1, arg1)
unless 1 <= u goto L4
- $I0 = rand u
+ $I0 = rand 1, u
set res, $I0
goto L2
L3:

0 comments on commit 7edb8bf

Please sign in to comment.