Math

From Multi Theft Auto: Wiki
Revision as of 17:43, 28 February 2023 by Tracer (talk | contribs) (Fixed a typo. It should be randomseed and not random itself.)
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.randomseed(os.time())

See Also