Removed util.random, added util.randomFloat #5

Merged
sorucoder merged 4 commits from develop-1.8 into develop-1.8 2018-12-09 15:43:27 -05:00
Showing only changes of commit eb8b823674 - Show all commits

View File

@@ -132,7 +132,7 @@ end
-- http://lua-users.org/wiki/SimpleRound
function Util.round(num, idp)
local mult = 10^(idp or 0)
return util.signum(num) * math.floor(math.abs(num) * mult + 0.5) / mult
return Util.signum(num) * math.floor(math.abs(num) * mult + 0.5) / mult
end
function Util.randomFloat(max, min)