This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| script:module:math [2019-11-17 16:14] โ [Functions] skyjake | script:module:math [2019-12-22 06:33] (current) โ skyjake | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Math (Module) ====== | ||
| + | |||
| + | Module that provides math-related functions. | ||
| + | |||
| + | |||
| + | ===== Functions ===== | ||
| + | |||
| + | # | ||
| + | |||
| + | Cosine of //n//. | ||
| + | |||
| + | # | ||
| + | |||
| + | Returns a random number between 0 and 1. | ||
| + | |||
| + | # | ||
| + | |||
| + | Returns a random integer in the range // | ||
| + | |||
| + | $ Math.randInt(0, | ||
| + | โ 3 | ||
| + | |||
| + | # | ||
| + | |||
| + | Returns a random floating-point number in the range // | ||
| + | |||
| + | # | ||
| + | |||
| + | Sine of //n//. | ||
| + | |||
| + | # | ||
| + | |||
| + | Tangent of //n//. | ||