This function returns a pseudo-random item from a list or tuple. The array must contain at least one item, otherwise a lookup_err() is raised.
This function does not generate a change.
array.choice()
None
A pseudo-random item from the array or a lookup_err() when empty.
This code shows an example using choice():
// Returns either `a`, `b` or `c`
['a', 'b', 'c'].choice();
Example return value in JSON format
"b"