EmAySee Random String Selector (20)
Twenty prompt slots, one randomly chosen — the 20-way picker
- selected_string
A twenty-slot prompt roulette. You paste up to twenty different strings - subject variations, style swaps, negative-prompt candidates - and the node picks one at random for each run and hands it to your CLIP encoder. It's the heavyweight of the pack's string-selector family, and the one you want when "random prompt" means a real pool, not a coin flip between two.
How it works
Every input is optional: string_1 through string_20. Leave any slot empty and it's simply not in the pool - so you can start with four filled and grow to twenty without reconfiguring anything. A seed input controls the pick, so the same seed + same pool gives the same winner, which is handy when you want to reproduce an exact run.
Output is selected_string (STRING), a single string you wire into a CLIP Text Encode (or a text combine, or a filename template - wherever a string goes).
The seed nuance
The seed widget is required, and it does gate the selection - this isn't the "every run is new" roulette you get elsewhere in this pack. Set the seed and randomize it on the widget to get a fresh pick per run; leave it fixed and you'll get the same slot forever. That trips people up in the other direction: they expect randomness and get the same string five runs in a row because the seed never changed. ComfyUI's "randomize" button on the widget fixes it in one click.
Where it fits
This is the classic "wildcard without a wildcard file" pattern. Instead of maintaining a wildcard text file and a wildcard processor, you type your variations directly into the node. Fewer moving parts, and you can see the whole pool on screen at once. The trade-off is 20 hard-coded slots - for a truly enormous pool you'd still want a real wildcard system, and this pack's other pickers are better when you only need 2–4 options.
Installing it
From ComfyUI_EmAySee_CustomNodes, via ComfyUI Manager (search the pack title) or:
cd ComfyUI/custom_nodes
git clone https://github.com/EmAySee/ComfyUI_EmAySee_CustomNodes
# restart ComfyUI
It's under EmAySee/Utils. No dependencies, no model files - it's random.choice over whatever you typed.
Inputs (21)
| Name | Type | Default | Description |
|---|---|---|---|
| seed | INT | 00–18446744073709550000 | — |
| string_1opt | STRING | — | |
| string_2opt | STRING | — | |
| string_3opt | STRING | — | |
| string_4opt | STRING | — | |
| string_5opt | STRING | — | |
| string_6opt | STRING | — | |
| string_7opt | STRING | — | |
| string_8opt | STRING | — | |
| string_9opt | STRING | — | |
| string_10opt | STRING | — | |
| string_11opt | STRING | — | |
| string_12opt | STRING | — | |
| string_13opt | STRING | — | |
| string_14opt | STRING | — | |
| string_15opt | STRING | — | |
| string_16opt | STRING | — | |
| string_17opt | STRING | — | |
| string_18opt | STRING | — | |
| string_19opt | STRING | — | |
| string_20opt | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| selected_string | STRING | — |