Random Seed Generator
One seed, shared across the workflow
- seed
A seed node. It holds a seed value and outputs it as an INT, so you can wire one seed into several places and keep them in sync. That's the entire job, and the reason a dedicated node beats typing the number into your KSampler is reuse: the pack's random-layout and logic nodes want a seed too, and a single generator feeding all of them means one place to randomize instead of chasing the value around the graph.
It behaves like any normal random-seed widget - randomize for a new number each run, fixed to lock one. Nothing exotic. Where it exists in the pack's ecosystem is as the feed for the Random Tilling Layout and Random Nested Mask Layout nodes (for regional-conditioning layouts) and the arithmetic/logic helpers, all of which take a seed input.
How it works
You give it a seed value and it outputs that same INT. When set to randomize, ComfyUI rolls a new number each queue; when fixed, it stays put. The output plugs into any INT seed socket - your sampler, a layout generator, an "Even or Odd" logic node, whatever.
The input that matters
- seed - the value, 0 up to the full 64-bit range. Set it fixed to reproduce a result, or let it randomize for variety. Output is a single seed (INT).
That's genuinely it. This is a primitive.
The one gotcha worth knowing
The author documents a real ComfyUI quirk with seed nodes like this one: switching from randomize to fixed now takes effect immediately, but switching back from fixed to randomize needs two Queue Prompt presses to kick in - that's a ComfyUI evaluation-order thing, not a bug in the node. If you flip to randomize and the seed doesn't change on the first queue, queue once more. If that dance annoys you, the author's own suggested fix is to drive it with Global Seed (Inspire) from the Inspire Pack, which handles the propagation more gracefully.
Install
ComfyUI Manager → search ComfyUI_Mira → Install → restart. Or clone it: cd ComfyUI/custom_nodes && git clone https://github.com/mirabarukaso/ComfyUI_Mira.git, restart. If the pack errors on load, run pip install -r requirements.txt in the pack folder. No downloads.
Common issues
The fixed→randomize two-queue behavior above is the only real surprise, and it's ComfyUI-wide, not specific to this node. Beyond that: if you're trying to get the same random layout twice from the pack's layout nodes by reusing a seed, note the readme's warning that the layout generators' seed doesn't map to a reproducible layout the way an image seed maps to an image - save layouts you like with a text/notes node rather than expecting a seed to recreate them. For plain "share one seed across my sampler and helpers," it just works.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| seed | INT | 00–18446744073709550000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| seed | INT | — |