randomItem
Stores random item from a list or array into session variable.
Stores random item from a list or array into session variable.
Property | Type | Description |
---|---|---|
file | String | This file will be loaded into memory and the step will choose on line as the item. |
fromVar | String | Variable containing an array or list. |
list | Builder | Potentially weighted list of items to choose from. |
toVar | String | Variable where the chosen item should be stored. |
list
Property | Type | Description |
---|---|---|
<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. |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.