random

inline fun random(): Vector2I

Returns a random element from this array.

Throws

if this array is empty.


inline fun random(random: Random): Vector2I

Returns a random element from this array using the specified source of randomness.

Throws

if this array is empty.