Nifty Seed
A seed node with a dice button and a random-on-queue toggle
- seed_actions
- seed
The core ComfyUI seed node works, but working with it means fiddling with the little randomize dice and remembering to set "control after generate." Nifty Seed is the pack's take on the same job with the ergonomics fixed: a seed value, a big 🎲 New Seed button that randomizes on the spot, and a Random toggle that makes the node roll a fresh seed every time you hit Queue. If you've ever forgotten to randomize and generated the exact same image three times in a row, you'll appreciate this.
What it is
Inputs:
- seed - the seed value (0 to a huge max, default 0).
- seed_actions - the widget with the two controls: 🎲 New Seed randomizes immediately, and the Random toggle controls random-on-queue behavior.
Output: seed - the seed as an INT, clamped to the valid range.
How the controls behave
Two things to understand, because they're the actual value here:
- New Seed randomizes the seed the instant you click it - no queue run needed, no "control after generate" ceremony. Click it, watch the number change, run.
- Random on Prompt is on by default. Every time you hit Queue, all seed nodes in the graph roll a new seed automatically. That's the "I want something different each run" workflow in one click.
And that default matters - it's the gotcha. If you build a workflow expecting a fixed, reproducible seed, the fact that random-on-prompt is on by default means your seeds silently change every run. The fix is one click on the Random toggle to switch it off. If you've ever wondered "why does my 'fixed seed' keep changing," this is the node to check first.
Why you'd reach for it
- Centralize your seed. Wire this node's output to every KSampler and noise node in the graph, so one seed drives everything and stays in sync.
- Reproducible A/B testing. Toggle Random off, and the seed is fixed until you hit New Seed - exactly what you want when you're changing one prompt word at a time and comparing outputs (the community's golden rule: change one variable, keep the seed fixed).
- Batch exploration. Toggle Random on and each queue run explores something new.
It's a QoL node, but a genuinely good one - the seed is the most-fiddled-with number in any graph, and this puts both "roll a new one" and "keep it fixed" one click away.
Installing it
Part of the Nifty Nodes pack:
cd ComfyUI/custom_nodes
git clone https://github.com/Stibo/comfyui-nifty-nodes
or search "Nifty Nodes" in ComfyUI Manager, then restart. No models or dependencies.
Gotchas
The random-on-queue default is the one real trap - a "fixed seed" workflow that silently randomizes is the classic complaint, and the toggle is the cure. Also note it's an INT output; wire it into anything that takes a seed, which is almost everything. And as with the whole pack, it targets ComfyUI's newer V3 API - update ComfyUI if the node doesn't show up after install.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| seed | INT | 00–1125899906842624 | — |
| seed_actions | NIFTY_SEED_ACTIONS | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| seed | INT | — |