Tile - YMath - Random – Ylands
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
==== min ==== | ==== min ==== | ||
Minimum number | |||
==== max ==== | ==== max ==== | ||
Maximum number | |||
=== Returns === | === Returns === | ||
'''number''' | '''number''' | ||
=== Availability === | |||
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Custom Controller|Custom Controller]] | |||
=== Description === | === Description === | ||
Returns a '''random''' number from selected '''interval'''. Interval is '''half closed''' and does not include '''max''' value. Returned value is '''integer'''. | Returns a '''random''' number from selected '''interval'''. | ||
=== Notes === | |||
* Interval is '''half closed''' and does not include '''max''' value. | |||
* Returned value is '''integer'''. | |||
Revision as of 11:17, 12 November 2021
Random(Min, Max)
static random(min: number, max: number): number;
Parameters
min
Minimum number
max
Maximum number
Returns
number
Availability
Client, Server, Custom Controller
Description
Returns a random number from selected interval.
Notes
- Interval is half closed and does not include max value.
- Returned value is integer.