Unit Reference RandomElementNode - RealityStop/Bolt.Addons.Community GitHub Wiki
The RandomElementNode selects a random element from a collection or dictionary. It supports both lists and dictionaries, returning either a single random value or, for dictionaries, the corresponding key-value pair.
Input Ports
- enter : The Control Input triggered when you want to select a random element.
-
collection : The collection or list to query, e.g.,
IEnumerableorIDictionary.
Output Ports
- exit : The Control Output triggered when the random selection is complete.
- value : The randomly selected value from the collection.
-
key : (Optional) The randomly selected key from a dictionary if the node is configured as
Dictionary.