Skip to main content

Array Random Element

Category: Processing

Description: Picks a random element from an array and outputs both the selected value and its zero-based index.

Text Array​

Inputs​

NameTypeRequiredDescription
Arraytext-arraytrueThe array to pick a random item from

Outputs​

NameTypeDescription
ValuetextThe randomly selected item
IndexnumberThe zero-based index of the selected item

Output Event Triggers​

Name
Success
Error

Number Array​

Inputs​

NameTypeRequiredDescription
Arraynumber-arraytrueThe array to pick a random item from

Outputs​

NameTypeDescription
ValuenumberThe randomly selected item
IndexnumberThe zero-based index of the selected item

Output Event Triggers​

Name
Success
Error