Although it seems fairly easy when you are thinking about it, but there is no function for selecting a random item from an array.

Lets declare an array in a sample variable.

Now we are going to use a simple logic to get a random item from this variable.

First of all we need to get the length of the array.


Then we are going to use the rand() function of the power autoamate to randomly select an index between 0 and the length of our sample array


Now all we need to do is pick that item from our random item.


A simple trick to pick up the random item of an array.