Nodes/ComfyUI-mnemic-nodes/🎲 Random Seed
ComfyUI Node

🎲 Random Seed

A fresh 64-bit seed every run, no inputs required

By MNeMoNiCuZΒ·Created 3 years agoΒ·Updated 23 days agoΒ· 105
🎲 Random Seed
    • seed

    The plainest node in the entire pack: no inputs at all, one output, and it rolls a brand-new random 64-bit integer every single time it runs. That's the whole node.

    How it works

    It regenerates on each execution - full stop, no exceptions. There's no widget to hold a value and no "control after generate" setting to worry about, because there's nothing to control; it always rolls fresh. Compare that to a normal seed widget on a KSampler, which defaults to remembering whatever number it last used until you explicitly set its control-after-generate mode to randomize, increment, or decrement - this node skips that entire menu and just always gives you something new.

    The inputs and outputs that matter

    • No inputs.
    • Output: seed (INT, 0 to 2^64-1).

    How to install it

    Via ComfyUI Manager: search ComfyUI-mnemic-nodes, install, restart. Manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/MNeMoNiCuZ/ComfyUI-mnemic-nodes
    

    Restart ComfyUI. No dependencies, no model files.

    Common issues & troubleshooting

    Isn't this what the KSampler's seed widget with "randomize" already does? For one sampler, yes. This node earns its place when you need the same fresh random seed shared across several nodes in a single run - two samplers that should stay in sync, a seed you want baked into a filename token, or a seed feeding into a downstream node that also takes a seed input (like this pack's own Random String). Wire one Random Seed output to all of them and they get the identical roll instead of drifting independently, which is genuinely hard to do with per-node "randomize" widgets since each one rolls its own value.

    It's also the right tool for API/headless runs, where there's no editor UI and no "randomize" button to click at all - this node just always gives you a new value on execution regardless of how the workflow is triggered. Because it's an INT output, it slots straight into anything expecting a numeric seed, including this pack's own seed-driven nodes like Load Images From Path or Random String if you'd rather drive their index/seed inputs from a single shared roll than manage each one's control-after-generate setting individually.

    One real limitation: because it always rolls, there's no way to pin it to a specific value for a reproducible run. If you sometimes want random and sometimes want a fixed, repeatable seed, use a regular INT widget (this pack's Literal Int, or ComfyUI's own primitive) and toggle its control-after-generate setting between "Fixed" and "Randomize" instead - that gives you both modes on one node, which this one deliberately doesn't.

    Category⚑ MNeMiC Nodes

    Inputs (0)

    No inputs

    Outputs (1)

    NameTypeDescription
    seedINTβ€”