RANDOM_ELEMENT

Select a random element from an array.

Syntax 

RANDOM_ELEMENT(array)

Usage examples 

Example 1

Input

1
{
2
"my_action": {
3
"message": [
4
"north",
5
"south",
6
"east",
7
"west"
8
]
9
}
10
}

Formula

RANDOM_ELEMENT(my_action.message)

Output

"east"

Sample Actions 

Event Transform
My Action
Event Transform
RANDOM_ELEMENT

Select an Action to inspect.

You can also click "Copy Actions" and paste them in your Tines Story to see how they work.

Was this helpful?