π² CR Random Multiline Values
Seeded random strings, batched and typed
- multiline_text
- show_help
The general-purpose sibling of Comfyroll's random-generator nodes: instead of colors specifically, CR Random Multiline Values produces a batch of random strings from whatever character set you choose - digits, letters, hex characters, or a completely custom pool you define yourself.
What it's for
Anywhere you need a batch of random-looking codes or values - placeholder IDs, test data to stress a downstream text-processing node, random labels for a batch of generated assets - this node builds that list in one place, seeded so the batch is reproducible. It's the more flexible counterpart to CR Random Panel Codes (which is a narrower, comic-panel-code-flavored version of the same idea) and CR Random Multiline Colors (same pattern, but specifically for colors).
How it works
Pick a character-set flavor with value_type, set how long each generated string should be and how many rows you want, and the node draws that many random strings from the chosen pool. If none of the built-in flavors fit, value_type: custom lets you supply your own character pool directly via custom_values, and the node draws from exactly those characters instead.
Inputs and outputs that matter
seed(default 0) - controls the randomization. Same seed, same settings, same output every time - change it to get a fresh batch.value_type- seven options: binary, decimal, natural, hexadecimal, alphabetic, alphanumeric, and custom. The first six are built-in character-set flavors covering the common cases (digits-only, hex characters, letters-only, mixed letters and numbers); pick custom when you need a specific pool of characters that isn't one of those.rows(default 5, up to 2048) - how many random strings to generate.string_length(default 5, up to 1024) - how long each generated string is.custom_values(default123ABC) - only used whenvalue_typeis set to custom; the node draws each generated string's characters from this pool.prepend_text(optional) - a fixed prefix applied to every generated line, useful for turning raw random strings into something likeID_a4f2crather than a bare code.
Output is multiline_text, typed as a wildcard so it connects to whatever expects a string or list downstream, plus the pack-standard show_help link.
How to install it
Install via ComfyUI Manager (search "Comfyroll Studio"), or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git
Restart ComfyUI. No models or extra dependencies for this node.
Common issues & troubleshooting
custom_values field has no effect. It only does anything when value_type is set to custom - with any of the other six presets selected, the node draws from its built-in pool and ignores whatever's in that field entirely.
Generated strings are shorter or longer than expected. That's string_length, applied per row independently of rows - check you're not confusing the two. rows controls how many lines you get; string_length controls how long each one is.
Same seed, different-looking output than last time. If you've changed rows, string_length, or value_type since the last run, the sequence shifts even at a fixed seed - the seed determines the whole batch given a specific configuration, not a per-parameter-independent draw you can vary in isolation.
Downstream node rejects the output. Since the output type is a wildcard, it's easy to send a block of multiple lines into something expecting exactly one value. If you need a real list rather than one multiline string, route it through CR Multiline Text with split_string turned on first.
Pack doesn't load at all. That points at a broken install rather than this node specifically - delete the ComfyUI_Comfyroll_CustomNodes folder and re-clone clean.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| seed | INT | 00β18446744073709550000 | β |
| value_type | COMBO | 7 options: binary, decimal, natural, hexadecimal, alphabetic, alphanumeric, +1 | |
| rows | INT | 51β2048 | β |
| string_length | INT | 51β1024 | β |
| custom_values | STRING | 123ABC | β |
| prepend_text | STRING | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| multiline_text | * | β |
| show_help | STRING | β |