Random Prompt Selector
Pick a line, any line β reproducibly
- selected_prompt
Type a list of prompts, one per line, and Random_Prompt_Selector hands back one of them at random. That's it - and it's the seedable kind of random, which is what makes it useful rather than annoying. Keep the same seed and you get the same pick every run; change the seed and you roll again. If you've been manually cycling prompts for variety, this automates it.
It's the single-pick member of the Endless random prompt family (the Multipicker is the multi-line sibling, and the pack also has the heavier Chaos/Mayhem/Pandemonium parameter randomizers). The README frames these as "randomly selecting text from the input... useful for randomly picking prompts."
Inputs and outputs
prompts- multiline, one prompt per line. Lines are stripped and blanks ignored.seed- integer 0 to 4294967295. The reproducibility knob.
Output: selected_prompt - a single STRING. Wire it straight into your positive prompt node.
Under the hood it's a random.seed(seed) followed by random.choice(lines) - deterministic for a given seed, which is the whole deal. Set the seed to 0 (or any fixed value), and a workflow you've saved will reproduce the same pick when reloaded.
How to actually use it
The interesting version of this is randomness you can freeze. Pair it with a fixed-seed sampler for "same settings, random subject" exploration, or leave the seed wired to a random source when you want every run to surprise you. Want a guaranteed range of variation across a batch? Combine with the Endless batch prompt nodes - let this selector feed a SimpleBatchPrompts list, set the queue to run several times, and each run gets a fresh prompt while the graph itself stays untouched.
One honest note: prompt-randomizing on a single pick is a shallow kind of variety - the pick is uniformly random, so it won't weight favorites. If you want smarter selection (wildcards, weighted choices, exclusion), dedicated dynamic-prompt tooling exists. This node is for when simple and reproducible is exactly what you need.
Installing it
Ships in 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
An empty or all-blank prompt list returns an empty string rather than erroring, so downstream will happily render an empty prompt. And the pack caveat: one hobbyist maintainer, AI-assisted, rewritten June 2025. The logic here is a couple of lines, so the risk is minimal - but plenty of utility packs ship an equivalent random picker if you don't need the rest of Endless.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| prompts | STRING | Prompt A Prompt B Prompt C | β |
| seed | INT | 00β4294967295 | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| selected_prompt | STRING | β |