Nodes/Comfyroll Studio/🎲 CR Random Multiline Values
ComfyUI Node Runs on cloud

🎲 CR Random Multiline Values

Seeded random strings, batched and typed

By Suzie1Β·Created 3 years agoΒ·Updated 2 years agoΒ· 1,287
🎲 CR Random Multiline Values
    • multiline_text
    • show_help
    β—„seed0β–Ί
    β—„value_typeβ–Ύβ–Ί
    β—„rows5β–Ί
    β—„string_length5β–Ί
    β—„custom_values123ABCβ–Ί
    β—„prepend_textβ–Ί

    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 (default 123ABC) - only used when value_type is 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 like ID_a4f2c rather 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.

    Category🧩 Comfyroll Studio/πŸ› οΈ Utils/🎲 Random

    Inputs (6)

    NameTypeDefaultDescription
    seedINT00–18446744073709550000β€”
    value_typeCOMBO7 options: binary, decimal, natural, hexadecimal, alphabetic, alphanumeric, +1
    rowsINT51–2048β€”
    string_lengthINT51–1024β€”
    custom_valuesSTRING123ABCβ€”
    prepend_textSTRINGβ€”

    Outputs (2)

    NameTypeDescription
    multiline_text*β€”
    show_helpSTRINGβ€”