pickRandom

pickRandom(array)

pickRandom(array, number)

pickRandom(array, weights)

pickRandom(array, number, weights)

pickRandom(array, weights, number)

Pick a random entry from a given array.

Try it yourself:

See also:
All functions