> Nekoplay

arrayChoose

random.arrayChoose()

Picks a random element from the array.

random.arrayChoose(array, weight)

array Array

A list of elements of any type.

weight Array

A list of weights (numbers) corresponding to the array elements.