Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 580 Bytes

randomPick.md

File metadata and controls

20 lines (13 loc) · 580 Bytes

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.

Arguments:

  • Any number of arguments.

Usage:

randomPick("arg1", "arg2", "arg3", "arg4", "arg5");

// output: a random element from the list "arg1", "arg2", "arg3", "arg4" and "arg5"