Nodes/Endless ️🌊✨ Nodes/Random Multiprompt Picker
ComfyUI Node

Random Multiprompt Picker

Grab a handful of prompts at once

By tusharbhuttΒ·Created 3 years agoΒ·Updated about a year agoΒ· 68
Random Multiprompt Picker
    • selected_prompts
    β—„promptsLine 1 Line 2 Line 3 Line 4β–Ί
    β—„num_to_pick2β–Ί
    β—„allow_duplicatesfalseβ–Ί
    β—„delimiter β–Ί
    β—„seed0β–Ί

    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 via random.sample; if on, random.choices lets the same prompt appear multiple times. This matters more than it looks: with duplicates off and num_to_pick larger 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.

    CategoryEndless 🌊✨/Randomizers

    Inputs (5)

    NameTypeDefaultDescription
    promptsSTRINGLine 1 Line 2 Line 3 Line 4β€”
    num_to_pickINT21–100β€”
    allow_duplicatesBOOLEANfalseβ€”
    delimiterSTRING β€”
    seedINT00–4294967295β€”

    Outputs (1)

    NameTypeDescription
    selected_promptsSTRINGβ€”