lua math functions code example
Example 1: lua functions
function myFunction() -- Start with 'function', give it a name
-- Do something amazing...
end -- Finish with 'end'
myFunction() -- Call the function later in the code
Example 2: lua math.random
local M = math.random(1,2) --Input you number
print(M)