Reference

Class

RiTa

Name

RiTa.randomItem

Description Returns a random item from an array (or Collection)
Syntax
RiTa.randomItem(myArray);
Returns
Objectthe item
Example
arr = {"apple","banana","peach"}; 
RiTa.randomItem(arr);
Platform Java / Javascript