Tile - YMath - Random – Ylands

From Bohemia Interactive Community
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.