Tile - YMath - Random – Ylands

From Bohemia Interactive Community
(Redirected from Ylands:Tile - Math random)
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.