Iterate Seed
Seed farming, without clicking the dice a hundred times
- new_seed
Iterate Seed is the "next seed, please" node. You feed it a seed, it hands you a new one, and you wire that back into your KSampler so you can farm variations without touching the dice button once. If you've ever queued ten runs by hand just to see what a prompt does across seeds, this is the node that ends that ritual.
How it works
Two modes, chosen by the method dropdown:
- increment (default) - adds 1 to the seed.
42 → 43 → 44…When it hits the int32 ceiling (2147483647) it wraps back to0. One special case: if you feed it-1, it stays-1, because-1in ComfyUI-land means "fully random, pick one for me." - random - seeds a random number generator with your current seed and returns a random int from that. Here's the part people get wrong: this is deterministic. Same seed in, same "random" seed out. It's not chaos, it's a stable shuffle - which is what you actually want if you ever need to reproduce a run.
You feed it an init_seed, it outputs new_seed.
Why it matters
The whole workflow looks like: seed → Iterate Seed → KSampler seed input, with the output looping back as the next input. Combined with a queue of N runs, every run explores a different seed while keeping everything else identical. That's the textbook "change one variable at a time" discipline the community preaches - lock everything, only the seed moves, and suddenly you can actually diagnose what a parameter does. Pair it with TinyBee's Auto Seed if you'd rather have ComfyUI assign fresh seeds automatically and only use this node when you want controlled stepping.
The inputs that matter
- init_seed - where you start.
-1is allowed and stays frozen. - method -
incrementorrandom.
One output:
- new_seed - wire it to your KSampler's seed input and back into this node for a chain.
Installing it
It's part of TinyBee. ComfyUI Manager → Install Custom Nodes → search "ComfyUI-TinyBee", install, restart:
cd ComfyUI/custom_nodes
git clone https://github.com/TinyBeeman/ComfyUI-TinyBee
Find it under 🐝TinyBee/Util. No extra dependencies for this node.
Common issues
The -1 behavior surprises people - if your seed is -1 it will never advance, and you'll silently generate the same "random" thing each run. And remember random mode isn't a randomizer; it's a deterministic function of your seed. If you want true non-reproducible randomness, leave a seed at -1 somewhere upstream (like Random Entry) rather than relying on this node's random method.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| init_seed | INT | 0-1–2147483647 | — |
| method | COMBO | increment | 2 options: increment, random |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| new_seed | INT | — |