ComfyUI Node
pop random
Removes and returns a random element from a SET. This node takes a SET as input and returns the SET with a random element removed and the removed element itself. If the SET is empty, it returns None for the element. An optional seed can be provided for reproducible selection.
pop random
- set
- set
- item
◄seed0►
CategoryBasic/SET
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| set | SET | — | |
| seedopt | INT | 00–18446744073709550000 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| set | SET | — |
| item | * | — |