-
Notifications
You must be signed in to change notification settings - Fork 37
Unit Reference RandomElementNode
S2NX7 edited this page Sep 30, 2025
·
2 revisions

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.,
IEnumerable
orIDictionary
.
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
.