Nodes/Comfyui-ergouzi-Nodes/2🐕Random prompt
ComfyUI Node

2🐕Random prompt

Pick five tag categories, get a random prompt fragment from each

By 11dogzi·Created 2 years ago·Updated 2 years ago· 102
2🐕Random prompt
    • prompt
    Custom_Type1None
    weight11.0
    Custom_Type2None
    weight21.0
    Custom_Type3None
    weight31.0
    Custom_Type4None
    weight41.0
    Custom_Type5None
    weight51.0
    seed0

    Most of the ergouzi "prompt word master" nodes make you pick the exact tag you want from a dropdown. EG_SJ ("Random prompt") flips that around - you pick which category you want to draw from, and the node rolls a random tag out of it for you. It's the node for "surprise me, but stay on-topic."

    How it works

    The node has five identical slots, each pairing a Custom_TypeN dropdown with a weightN slider. The dropdown doesn't list individual tags - it lists 53 broad category names (Sky, Indoor, Outdoor, Building, Flowers, Graphic effects, Image type, Coding method, Composition Method, Art style, Background, and more). Assign a category to a slot, and on generation the node randomly samples one tag from within that category, weighted, and appends it to the output. Leave a slot on "None" and it contributes nothing. All five slots share one seed, so the whole combination is reproducible - same seed, same five picks - while still being random relative to your input rather than something you hand-selected.

    This is the node to reach for when you know the shape of what you want (something about lighting, something about setting, something about composition) but you'd rather let the node surprise you within those lanes than scroll a 100-tag dropdown yourself.

    The inputs and outputs that matter

    All ten fields (Custom_Type15 and weight15) are optional and independent - use one slot or all five, in any combination of categories. Weight sliders run 0.1–2.0, default 1; the tested practical range for tag emphasis is roughly 0.5–1.5, so keep multiple simultaneous weights in that band rather than maxing them all out, or you'll get oversaturation instead of a stronger effect. seed is the only thing controlling reproducibility here - there's no separate random/manual toggle like the pack's other prompt nodes, because every non-None slot is inherently a random draw. Output is a single prompt (STRING) - concatenate it with your other prompt fragments or feed it straight to a CLIP Text Encode.

    How to install it

    ComfyUI Manager: search Comfyui-ergouzi-Nodes. By hand:

    cd ComfyUI/custom_nodes
    git clone https://github.com/11dogzi/Comfyui-ergouzi-Nodes.git
    

    Restart. The author's README flags this English repo as no longer updated, with newer work landing in a Chinese-named sibling (Comfyui-ergouzi-DGNJD) instead - you're running the frozen version.

    Common issues & troubleshooting

    Same seed, same result - including across unrelated runs. Because all five slots share one seed, changing the category in slot 3 while keeping the seed fixed will also shift what slots 1, 2, 4, and 5 roll, since they're all drawn from the same seeded sequence. If a run you liked stops reproducing after a category change, that's why - the seed alone isn't enough to lock in the parts you wanted to keep.

    Weighted tags mean nothing on LLM-encoded models. (tag:1.4)-style output only reads as emphasis on CLIP-based checkpoints (SD 1.5, SDXL, Illustrious, Pony, NoobAI). On Z-Image, Flux 2, Anima, or Krea 2, that syntax is literal text, not a weight - worth knowing before you assume the sliders are doing anything on a newer model.

    You can't target a specific tag. This node is randomness by design - if you know exactly which tag you want, use one of the pack's non-random "Fixed" category nodes instead (Character, Lens, Style, Quality, Lighting, or Item category) and pick it from the dropdown directly.

    Category2🐕/🏷️Prompt word master/🔀random class

    Inputs (11)

    NameTypeDefaultDescription
    Custom_Type1optCOMBONone53 options: None, Sky, Indoor, Outdoor, Building, Flowers, +47
    weight1optFLOAT1.00.1–2
    Custom_Type2optCOMBONone53 options: None, Sky, Indoor, Outdoor, Building, Flowers, +47
    weight2optFLOAT1.00.1–2
    Custom_Type3optCOMBONone53 options: None, Sky, Indoor, Outdoor, Building, Flowers, +47
    weight3optFLOAT1.00.1–2
    Custom_Type4optCOMBONone53 options: None, Sky, Indoor, Outdoor, Building, Flowers, +47
    weight4optFLOAT1.00.1–2
    Custom_Type5optCOMBONone53 options: None, Sky, Indoor, Outdoor, Building, Flowers, +47
    weight5optFLOAT1.00.1–2
    seedoptINT0-1125899906842624–1125899906842624

    Outputs (1)

    NameTypeDescription
    promptSTRING