iterator.random

Returns random element from array.

Arguments

subject

DataType
mixed
Required
false
Description
The subject Traversable/Array instance from which to select a random element

as

DataType
string
Required
false
Description
Template variable name to assign; if not specified the ViewHelper returns the variable instead.