randomItem

Stores random item from a list or array into session variable.

Stores random item from a list or array into session variable.

PropertyTypeDescription
fileStringThis file will be loaded into memory and the step will choose on line as the item.
fromVarStringVariable containing an array or list.
listBuilderPotentially weighted list of items to choose from.
toVarStringVariable where the chosen item should be stored.

list

PropertyTypeDescription
<any><list of strings>Item as the key and weight (arbitrary floating-point number, defaults to 1.0) as the value.
<list of strings><list of strings>Item as the key and weight (arbitrary floating-point number, defaults to 1.0) as the value.