- :null
- :any
sample
get a random element from given collection
Parameters
sample collection :block :range
Returns
Examples
copysample [1 2 3] ; (return a random number from 1 to 3) print sample ["apple" "appricot" "banana"] ; apple
sample collection :block :range
copysample [1 2 3] ; (return a random number from 1 to 3) print sample ["apple" "appricot" "banana"] ; apple