Random item or character.
pick collection
pick word
(pick collection n)
(pick word n)
Returns a random item from the collection or a random character from the word. If optional argument n
is provided then instruction returns collection of n randomly selected items or word made of n randomly selected
characters.
Example:
print pick {1 2 3}
print pick "abc
"a := {1 2 3 4 5}
print (pick :a 3)
print (pick "characters 3)
Output:
1
c
{1 4 5}
cra
See also:
Operations on words
Operations on data sets
Mathematical operations
Table of Content