Nodes/ComfyUI-hybs-nodes/Seed List Generator
ComfyUI Node

Seed List Generator

Seed lists on demand, fresh on every run

By hybskgks28275·Created about a year ago·Updated 2 months ago· 3
Seed List Generator
    • seed list
    • count
    count1

    When you're doing a batch of generations, you usually want variety - different seeds per image so the batch isn't forty copies of the same frame. HYBS_SeedListGenerator produces a list of random 32-bit seeds for exactly that, with one twist that makes it better than a static list: every queue run gets a new set of seeds, automatically.

    A static seed list in your workflow means rerunning the batch gives you the same seeds forever. That's what you want when you're debugging, and it's the opposite of what you want when you're farming variations. This node regenerates on each run, so hitting Queue twice gives you two different sets - but the sets are still lists of values you can feed into anything that iterates over a list, like a prompt/latent batch, so each seed still pairs with the same workflow structure.

    How it works

    The mechanism is small but worth knowing, because it explains the "fresh every run" behavior. The single input is count (INT, default 1, up to 2^32), the number of unique seeds to generate. Internally it uses random.sample over the full 32-bit seed space, which guarantees no duplicates within one generated list - that's the "unique" in the description, and it's a real property, not marketing. Duplicate seeds in a batch are silently wasted generations, so this is a thoughtful touch.

    For the freshness: the node overrides its execution fingerprint with a random value on every call. ComfyUI uses the fingerprint to decide whether a node needs to re-run; forcing it to change means the list is recomputed each queue run instead of being treated as cached input. That's the whole "changing execution fingerprint" mechanism the author's docs mention, and it's why you don't have to toggle anything to get new seeds.

    Outputs:

    • seed list (LIST) - the generated 32-bit values
    • count (INT) - how many were generated, which is just your input echoed back for wiring convenience

    Installation

    Standard pack install:

    cd path/to/ComfyUI/custom_nodes
    git clone https://github.com/hybskgks28275/ComfyUI-hybs-nodes.git
    pip install -r ComfyUI-hybs-nodes/requirements.txt
    

    Or "ComfyUI-hybs-nodes" in ComfyUI Manager and restart. Nothing to download, nothing heavy - the pack's toml dependency is for a different node entirely.

    A couple of usage notes. Because the seeds are random, you can't reproduce a specific run by keeping the workflow - you'd need to capture the generated list first (many iteration nodes print or save what they consumed). And if you want fixed seeds for reproducibility, this isn't the node - that's what a plain Seed input does. This is the "I want N varied images, and I don't care which seeds, just not the same ones twice" tool, and for that it's exactly right.

    CategoryHYBS/SeedGenerator

    Inputs (1)

    NameTypeDefaultDescription
    countINT11–4294967296Number of unique seed values to generate.

    Outputs (2)

    NameTypeDescription
    seed listLISTRandomly generated 32-bit seed values.
    countINTNumber of generated seeds.