Tile - YMath - Random – Ylands

From Bohemia Interactive Community
Revision as of 11:17, 12 November 2021 by YlandsClassyBot (talk | contribs)
Jump to navigation Jump to search

Random(Min, Max)

YlandsTile-211.png

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.