# Doomsday Manual

### Site Tools

script:module:math

# Differences

This shows you the differences between two versions of the page.

 script:module:math [2019-11-17 18:14]skyjake script:module:math [2019-12-22 08:33]skyjake Both sides previous revision Previous revision 2019-12-22 08:33 skyjake 2019-11-17 18:14 skyjake [Functions] 2019-11-17 18:14 skyjake 2019-11-17 18:13 skyjake 2015-11-15 18:41 external edit Next revision Previous revision 2019-12-22 08:33 skyjake 2019-11-17 18:14 skyjake [Functions] 2019-11-17 18:14 skyjake 2019-11-17 18:13 skyjake 2015-11-15 18:41 external edit Line 6: Line 6: ===== Functions ===== ===== Functions ===== + #​@Identifier_HTML~cos~@#​ ( #​@Arg_HTML~Number,​n~@#​ ) + + Cosine of //n//. #​@Identifier_HTML~random~@#​ ( ) #​@Identifier_HTML~random~@#​ ( ) Line 11: Line 14: Returns a random number between 0 and 1. Returns a random number between 0 and 1. - #​@Identifier_HTML~randInt~@#​ ( #​@Arg_HTML~Number,​low~@#,​ #​@Arg_HTML~Number|high~@# ) + #​@Identifier_HTML~randInt~@#​ ( #​@Arg_HTML~Number,​low~@#,​ #​@Arg_HTML~Number,high~@# ) Returns a random integer in the range //​low//​...//​high//​. The range is inclusive at both ends, so this is possible: Returns a random integer in the range //​low//​...//​high//​. The range is inclusive at both ends, so this is possible: Line 18: Line 21: ⇒ 3 ⇒ 3 + #​@Identifier_HTML~randNum~@#​ ( #​@Arg_HTML~Number,​low~@#,​ #​@Arg_HTML~Number,​high~@#​ ) + + Returns a random floating-point number in the range //​low//​...//​high//​. + + #​@Identifier_HTML~sin~@#​ ( #​@Arg_HTML~Number,​n~@#​ ) + + Sine of //n//. + #​@Identifier_HTML~tan~@#​ ( #​@Arg_HTML~Number,​n~@#​ ) + Tangent of //n//.