Removed myrand() from Lua (it has math.random()), exposed CheckPercent() (probably don't need this either), removed some unnecessary inline functions.