ComfyUI Node

Seed

One seed to rule them all, with clamping

By eRepublik-Labs·Created 11 months ago·Updated 20 days ago· 1
Seed
    • seed
    seed-1
    min_value0
    max_value2147483647

    Every node with a seed widget in this pack wants the same number, and juggling five separate randomize buttons is how workflows become nondeterministic by accident. ERPK_Seed is the fix: one seed value with a proper randomize/increment/decrement/fix control, output as an INT, and you wire that single output into as many seed inputs as you like. Change it once, the whole graph stays in sync.

    That's the whole job, and it's the right job. Sharing one seed across the nodes in a chain means the same queue re-runs identically - which matters double here because the pack's API nodes use fixed seeds as cache control (a fixed value lets ComfyUI skip re-billing a call). One shared seed node gives you reproducible runs across Claude, Gemini, Grok, and WaveSpeed nodes at once.

    Inputs

    • seed - the value, default -1. The control dropdown does the randomize/increment/decrement/fix dance, same as any native seed widget.
    • min_value - default 0. The output is clamped to at least this.
    • max_value - default 2147483647. The output is clamped to at most this.

    The clamping is the differentiator versus stock seed nodes: if you're feeding a generator that only accepts a narrow seed range (or one where huge seeds misbehave), set the bounds here and let the node floor/ceil whatever the randomizer produces. Under the hood it's literally max(min_value, min(seed, max_value)) - nothing clever, which is the point.

    Output

    One output, seed (INT) - plug it into any node's seed input. Since it's a plain int, it also works into any math or logic node if you want to derive other values from it.

    Install

    Part of the ERPK Collection:

    cd ComfyUI/custom_nodes
    git clone https://github.com/eRepublik-Labs/comfyui-nodes-erpk.git erpk
    cd erpk && pip install -r requirements.txt
    

    Restart, or ComfyUI Manager → search erpk. No key, no models, runs instantly.

    Only real gotcha: with the API nodes in this pack, remember that a randomized seed means a fresh, billed API call every queue - so if you're iterating and your bill is climbing, fixing the seed here is the fastest way to get ComfyUI to serve cached results. That's the seed node quietly paying for itself.

    CategoryERPK/utils

    Inputs (3)

    NameTypeDefaultDescription
    seedINT-1-1–2147483647Seed value. Use the control dropdown to randomize, increment, decrement, or fix.
    min_valueoptINT00–2147483647Minimum seed value. Output is clamped to this lower bound.
    max_valueoptINT21474836470–2147483647Maximum seed value. Output is clamped to this upper bound.

    Outputs (1)

    NameTypeDescription
    seedINT