RANDOM_ELEMENT

Select a random element from an array.

Syntax 

RANDOM_ELEMENT(array)

Examples 

Example 1

Input

{
  "my_action": {
    "message": [
      "north",
      "south",
      "east",
      "west"
    ]
  }
}

Formula

RANDOM_ELEMENT(my_action.message)

Output

"east"
Was this helpful?