Random Multiprompt Picker
Grab a handful of prompts at once
- selected_prompts
The sibling of the Endless Random_Prompt_Selector, this one doesn't pick a single line - it picks several. Random_Prompt_Multipicker takes your line-per-prompt list, pulls num_to_pick of them, and joins the picks into one output string. Tired of rolling one prompt at a time when you want to generate a whole batch of variations? This is the node that feeds a multi-prompt batch from a pool.
Inputs and outputs
prompts- multiline list, one prompt per line.num_to_pick- how many to select, 1 to 100, default 2.allow_duplicates- if off (default), picks are unique viarandom.sample; if on,random.choiceslets the same prompt appear multiple times. This matters more than it looks: with duplicates off andnum_to_picklarger than your list, the node silently caps at the list length.delimiter- how the picked prompts are joined, default\n(newline). Change it if you're feeding something that expects commas or pipes.seed- the reproducibility knob, 0 to 4294967295. Same seed, same picks.
Output: selected_prompts - one STRING, the picks joined by delimiter.
How it works and where it fits
Same deterministic core as the single-picker: random.seed(seed), then a sample. The output string is designed to flow straight into the Endless batch prompt nodes - feed it to SimpleBatchPrompts or FluxBatchPrompts and each selected prompt becomes an image in the batch. That's the killer combo: a prompt pool, a seed, and one render pass producing several different subjects.
Set delimiter to \n for the batch nodes (they split on newlines). If you're building a prompt string for a single image instead, a space or comma delimiter gives you a combined prompt.
Installing it
Part of Endless πβ¨ Nodes by tusharbhutt:
cd ComfyUI/custom_nodes
git clone https://github.com/tusharbhutt/Endless-Nodes
# restart ComfyUI
Or ComfyUI Manager β search "Endless". No dependencies or model files.
Gotchas
Watch num_to_pick vs. your list length when duplicates are off - picks get capped, and you may think you're getting 10 variations when the pool only has 6. And the standing pack caveat: single hobbyist maintainer, AI-assisted, mid-2025 rewrite. The logic is a few lines of Python, so this is about as safe as custom nodes get.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| prompts | STRING | Line 1 Line 2 Line 3 Line 4 | β |
| num_to_pick | INT | 21β100 | β |
| allow_duplicates | BOOLEAN | false | β |
| delimiter | STRING | β | |
| seed | INT | 00β4294967295 | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| selected_prompts | STRING | β |