Random Shuffle Float
Shuffle a delimited list of numbers, seeded
- STRING
Random Shuffle Float is RandomShuffleString's numeric twin: feed it a delimited list of numbers as a string - 1.0$2.0$3.0 by default - and it gives you the same values back, reordered, using a seed you control. Nothing is generated or dropped; it's purely a reorder.
Part of aria1th's ComfyUI-LogicUtils - a personal utility pack from the same handle behind Illustrious XL's training. It's a small, under-documented pack, but this node is straightforward: string in, shuffled string out.
Why you'd want this
If you're driving something with a fixed sequence of numeric values - CFG scales across a batch, denoise strengths for a multi-pass workflow, weights for a set of LoRAs - running them in the same order every time can bake in an unintended pattern (early values getting more "settled" results if there's any state carried between iterations, for instance). Shuffling the sequence, but keeping it reproducible via seed, gives you controlled randomness: different order per seed, identical order for a repeated seed.
Note it works on the string, not on native FLOAT list types - the values are still text ("1.0$2.0$3.0") both coming in and going out. If something downstream needs an actual list of floats rather than a delimited string, you'd parse that string apart yourself with another node.
How it works
It splits input_string on separator, shuffles the resulting list using seed, and rejoins the shuffled sequence with the same separator into a single output string.
Inputs and outputs
input_string(STRING, default1.0$2.0$3.0) - the numeric values to shuffle, as one delimited string.separator(STRING, default$) - the delimiter to split and rejoin on.seed(INT, default 0) - controls the shuffle order. Same seed, same input → same result.- Output:
STRING- the shuffled values, rejoined withseparator.
How to install it
ComfyUI Manager: search "ComfyUI-LogicUtils", install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/aria1th/ComfyUI-LogicUtils
then restart ComfyUI. Pure CPU-side string work - no models, no meaningful runtime cost.
Common issues & troubleshooting
"Missing node type" on a shared workflow. ComfyUI Manager's "Install Missing Custom Nodes" resolves the whole pack from the graph JSON.
Import error on startup. The README notes the pack's own dependency installer is opt-in: set COMFYUI_LOGICUTILS_AUTO_INSTALL=1 before launch if a package didn't get installed automatically, or COMFYUI_LOGICUTILS_SKIP_INSTALL=1 to disable it if that hook is the actual problem. This node itself needs nothing beyond the standard library.
Output looks like text, not usable as a number. That's expected - the output type is STRING, not FLOAT, even though the content is numeric. If the next node in your graph wants an actual float, you'll need to convert it explicitly rather than wire the string straight in.
Same shuffle every run. Check whether seed is fixed - that's the seed doing its job (reproducibility), not a malfunction. Change or randomize it if you want a different order each run.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| input_string | STRING | 1.0$2.0$3.0 | — |
| separator | STRING | $ | — |
| seed | INT | 00–9223372036854776000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |