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.
Random Any Switch
- input_1
- input_2
- input_3
- input_4
- input_5
- output
- selected_index
◄seed0►
CategoryAUN Nodes/Utility
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| seed | INT | 00–18446744073709550000 | Seed 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)
| Name | Type | Description |
|---|---|---|
| output | * | — |
| selected_index | INT | — |