Random

Randomization functions.

Function
Returns
Description

RandomInt(min: int, max: int)

int

Returns random integer between min and max (exclusive).

RandomFloat(min: float, max: float)

float

Returns random float between min and max.

RandomBool()

bool

Returns random boolean.

RandomDirection()

Vector3

Returns random normalized Vector3.

RandomSign()

int

Returns either -1 or 1.

RandomVector3(min: Vector3, max: Vector3)

Vector3

Returns a random Vector3 between min and max.

PerlinNoise(x: float, y: float)

float

Returns a point sampled from generated 2d perlin noise. (see Unity Mathf.PerlinNoise for more information)

Last updated