ReferenceScript nodesUtilities › List
Random List Item
An item of the list at random, and its index (for an empty list, the type's plain value and -1).
ƒRandom List Item
Target ListOut Item
Out Index
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Target Listlist | list | – | – |
Outputs
| Pin | Type |
|---|---|
Out Itemitem | any |
Out Indexindex | int |
In a graph
◆On Scene Start
ƒRandom List Item
Target ListOut Item
Out Index
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.