Math

From Multi Theft Auto: Wiki
Revision as of 11:36, 28 February 2023 by Fernando187 (talk | contribs) (add math.randomseed(os.time()) tip)
Jump to navigation Jump to search

Math is a built-in Lua library which contains mathematical functions and constants that you can use in scripts.

Do this beforehand to improve randomness:

math.random(os.time())

See Also