skip to content
Doomsday Manual
User Tools
Admin
Log In
Site Tools
Search
Tools
Show page
Old revisions
Backlinks
Recent Changes
Media Manager
Sitemap
Log In
>
Recent Changes
Media Manager
Sitemap
Trace:
script:module:math
====== Math (Module) ====== Module that provides math-related functions. ===== Functions ===== #@Identifier_HTML~cos~@# ( #@Arg_HTML~Number,n~@# ) Cosine of //n//. #@Identifier_HTML~random~@# ( ) Returns a random number between 0 and 1. #@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: $ Math.randInt(0, 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//.
script/module/math.txt
· Last modified: 2019-12-22 06:33 by
skyjake
Page Tools
Show page
Old revisions
Backlinks
Rename Page
Back to top
Doomsday
Engine
2.3
⇣
Builds
Add-ons
Manual
·
Forums
Support
Bug
Tracker
Blog