Nodes/AUN ComfyUI Nodes/Random Any Switch
ComfyUI Node

Random Any Switch

Randomly selects one of several connected inputs of any type and outputs it, along with the index of the selected input.

By loz2754·Created 7 months ago·Updated about a month ago· 4
Random Any Switch
  • input_1
  • input_2
  • input_3
  • input_4
  • input_5
  • output
  • selected_index
seed0
CategoryAUN Nodes/Utility

Inputs (6)

NameTypeDefaultDescription
seedINT00–18446744073709550000Seed for the random selection. Changing this will change the choice.
input_1opt*Optional candidate #1 (any type).
input_2opt*Optional candidate #2 (any type).
input_3opt*Optional candidate #3 (any type).
input_4opt*Optional candidate #4 (any type).
input_5opt*Optional candidate #5 (any type).

Outputs (2)

NameTypeDescription
output*
selected_indexINT