Math Methods Math functions are accessible either globally or via the math. namespace. Absolute (abs) drylangabs(-5) // 5 Min and Max (min, max) drylangmin(3, 9) // 3 max(3, 9) // 9 Random (rnd) Generates a random integer from 0 to n-1. drylangrnd(10) // 0 to 9 If you pass a float, it rounds to the nearest integer. drylangrnd(3.7) // 4 Advanced Math (math.) drylangmath.sqrt(16) // 4 math.pow(2, 10) // 1024PreviousString MethodsNextRegular Expressions