randomPick (source code)
- Curried: false
- Failsafe status: not failsafe
The randomPick
function accepts a variable number of arguments and returns a
random element from the list of arguments. It randomly selects one of the
provided values and returns it.
- Any number of arguments.
randomPick("arg1", "arg2", "arg3", "arg4", "arg5");
// output: a random element from the list "arg1", "arg2", "arg3", "arg4" and "arg5"