Nodes/Comfyroll Studio/🎲 CR Random Panel Codes
ComfyUI Node Runs on cloud

🎲 CR Random Panel Codes

Quick random codes for comic-panel-style labels

By Suzie1Β·Created 3 years agoΒ·Updated 2 years agoΒ· 1,292
🎲 CR Random Panel Codes
    • multiline_text
    • show_help
    β—„seed0β–Ί
    β—„rows5β–Ί
    β—„string_length5β–Ί
    β—„values123β–Ί

    The simplest of Comfyroll's three random-text generators. Where CR Random Multiline Values gives you seven character-set flavors to choose from, and CR Random Multiline Colors is built specifically for colors, CR Random Panel Codes strips that down to one job: draw random codes from a character pool you supply directly, in bulk. Its name points at the pack's comic-page tooling - this is the kind of small corner code you'd stamp onto a comic panel template - but there's nothing stopping you from using it anywhere else you need quick batch codes.

    What it's for

    CR Page Layout, CR Overlay Text, and the pack's comic panel templates all consume text one way or another, and sometimes what you want isn't a meaningful label but a plausible-looking code - an issue number, a stamp, a placeholder ID for a panel or asset. This node generates a batch of those in one call, seeded so you can lock in a set you like.

    How it works

    You give it a character pool (values), a length per code (string_length), and how many codes you want (rows), and it draws that many random strings using only the characters you supplied. Unlike CR Random Multiline Values, there's no preset character-set selector here - the pool is always whatever you type into values, which is both its simplicity and its whole point: you decide exactly what characters are eligible rather than picking from a fixed list of flavors.

    Inputs and outputs that matter

    • seed (default 0) - the randomization seed. Same seed and settings reproduce the same batch of codes.
    • rows (default 5, up to 2048) - how many codes to generate.
    • string_length (default 5, up to 1024) - how many characters long each code is.
    • values (default 123) - the character pool the codes are drawn from. Widen this to letters and symbols if you want more variety than the default digits-only pool.

    Output is multiline_text, one code per line, plus the standard show_help link to this node's wiki page.

    How to install it

    Search "Comfyroll Studio" in ComfyUI Manager, or clone it directly:

    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

    Every code looks the same or oddly repetitive. With the default values of 123, you're drawing from a pool of exactly three characters - at a short string_length there just aren't many possible combinations, so repeats and similar-looking codes are expected, not a bug. Widen the values pool for more variety.

    Codes come out shorter than requested. That shouldn't happen with a fixed string_length, but double-check you're reading string_length and not rows - it's an easy pair to mix up, since one controls how long each code is and the other controls how many codes you get.

    Wondering why not just use CR Random Multiline Values instead. You can - this node is functionally a simplified version of it with a fixed custom-pool mode and no preset character-set flavors. Use this one when you want the simplicity of "just give me codes from these characters," and reach for CR Random Multiline Values when you specifically want binary, hex, or alphanumeric presets without typing out the pool yourself.

    Pack fails to load at all. That's an install issue, not this node - delete the ComfyUI_Comfyroll_CustomNodes folder and re-clone rather than debugging a partial install.

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

    Inputs (4)

    NameTypeDefaultDescription
    seedINT00–18446744073709550000β€”
    rowsINT51–2048β€”
    string_lengthINT51–1024β€”
    valuesSTRING123β€”

    Outputs (2)

    NameTypeDescription
    multiline_textSTRINGβ€”
    show_helpSTRINGβ€”