Nodes/Promptcraft/Random Prompts
ComfyUI Node

Random Prompts

Resolve {A|B|C} variants and __wildcard__ tokens in a prompt template. Syntax: {A|B|C} — pick one option at random {2::A|B} — weighted pick (A is twice as likely) {A|{B|C}} — nesting supported __name__ — random value from wildcards/name.txt __dir/name__ — wildcard in a subdirectory

By rTachibana·Created 5 months ago·Updated 5 months ago· 1
Random Prompts
    • Resolved Prompt
    text
    seed0
    CategoryPromptcraft

    Inputs (2)

    NameTypeDefaultDescription
    textSTRINGPrompt template. {A|B|C} — pick one at random __name__ — wildcard from file
    seedINT00–18446744073709550000Random seed. Set 'control after generate' to 'fixed' for reproducible results.

    Outputs (1)

    NameTypeDescription
    Resolved PromptSTRINGThe prompt template with all variants and wildcards resolved.