Skip to content

random

random<T>(pArray): T

Get a random array element.

Type parameters

T

Parameters

pArray: T[]

Returns

T

Source

src/utils/ArrayUtils.ts:22