Skip to content

Unit Reference RandomElementNode

S2NX7 edited this page Sep 30, 2025 · 2 revisions

RandomElementNode

Screenshot 2025-09-30 164315

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 or IDictionary.

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.
Clone this wiki locally