better lua math library code example
Example 1: lua math.random
local M = math.random(1,2) --Input you number
print(M)
Example 2: how to find pi lua
-- The answer given is horrible dont do that, it has a while true do loop
-- which will crash most platforms
-- do this
math.pi
-- thats it, thats all there is to finding pi in lua