ComfyUI Node
Random List Picker
A ComfyUI node in utils with 11 inputs and 4 outputs.
Random List Picker
- selected_item
- prompt
- item_count
- selected_index
◄itemsrock
pop
jazz::2
classical
hip-hop►
◄template►
◄prefix►
◄suffix►
◄exclude►
◄fallback►
◄count1►
◄separator, ►
◄caseoriginal►
◄modepick►
◄seed-1►
Categoryutils
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| items | STRING | rock pop jazz::2 classical hip-hop | One item per line. Empty lines are ignored. Weighted syntax: item::weight (e.g. jazz::3 is 3× more likely). Default weight is 1. |
| templateopt | STRING | Prompt template with {item} as a placeholder. Example: 'Create a {item} song with heavy bass.' When count > 1, items are joined with the separator before substitution. Overrides prefix/suffix when non-empty. | |
| prefixopt | STRING | Text prepended before the chosen item(s). Used when template is empty. | |
| suffixopt | STRING | Text appended after the chosen item(s). Used when template is empty. | |
| excludeopt | STRING | Items to never pick, one per line. Matching is case-insensitive. | |
| fallbackopt | STRING | Value returned when no items remain after exclusions. | |
| countopt | INT | 11–100 | Number of unique items to pick. Automatically capped at list size. |
| separatoropt | STRING | , | String used to join multiple picked items (e.g. ', ' ' | ' '\n'). |
| caseopt | COMBO | original | Case transformation applied to each picked item. |
| modeopt | COMBO | pick | pick – choose random item(s) from the list. shuffle – return the entire list in a random order. |
| seedopt | INT | -1-1–2147483647 | Random seed. Use -1 for a new random result each run. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| selected_item | STRING | — |
| prompt | STRING | — |
| item_count | INT | — |
| selected_index | INT | — |