ComfyUI > Nodes > ComfyUI-EreNodes > Prompt Randomizer

ComfyUI Node: Prompt Randomizer

Class Name

ErePromptRandomizer

Category
EreNodes
Author
Erehr (Account age: 3928days)
Extension
ComfyUI-EreNodes
Latest Updated
2025-08-11
Github Stars
0.06K

How to Install ComfyUI-EreNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-EreNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-EreNodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Prompt Randomizer Description

ErePromptRandomizer adds randomness to text prompts, aiding AI artists in generating unique outputs.

Prompt Randomizer:

The ErePromptRandomizer node is designed to enhance the creative process by introducing an element of randomness into text prompts. This node is particularly useful for AI artists looking to generate unique and varied outputs by altering the input text in unpredictable ways. By leveraging the capabilities of the ErePromptRandomizer, you can explore a wide range of creative possibilities, making it an invaluable tool for experimentation and inspiration. The node operates by processing input text and optionally appending a prefix, separated by a customizable separator, which can be influenced by additional metadata if available. This flexibility allows for a tailored approach to prompt generation, ensuring that the results align with your creative vision while still introducing the desired level of randomness.

Prompt Randomizer Input Parameters:

text

The text parameter is a required input that represents the main body of the text prompt you wish to process. It serves as the foundation for the randomization process, and its content will be altered or combined with other elements based on the node's logic. The default value is an empty string, and it supports multiline input, allowing for complex and detailed prompts.

prefix

The prefix parameter is an optional input that allows you to specify a string to be prepended to the main text. This can be useful for setting a consistent theme or context across multiple prompts. When provided, the prefix will be separated from the main text by a customizable separator. The default behavior is to force input, ensuring that any specified prefix is always considered during processing.

extra_pnginfo

The extra_pnginfo parameter is a hidden input that can contain additional metadata, such as workflow information. This metadata can influence the behavior of the node, particularly in determining the separator used between the prefix and the main text. It is not typically modified directly by users but can be leveraged by advanced workflows to customize prompt generation further.

unique_id

The unique_id parameter is another hidden input that uniquely identifies the node within a workflow. It is used in conjunction with extra_pnginfo to retrieve specific properties, such as the prefix separator, ensuring that the node's behavior is consistent with the overall workflow configuration.

Prompt Randomizer Output Parameters:

STRING

The output of the ErePromptRandomizer node is a single string that represents the processed text prompt. This output combines the input text and any specified prefix, separated by the determined separator. The resulting string is ready for use in subsequent nodes or applications, providing a randomized and potentially unique prompt for creative exploration.

Prompt Randomizer Usage Tips:

  • Experiment with different prefixes to see how they influence the overall tone and direction of the generated prompts. This can help you discover new creative avenues and ideas.
  • Utilize the extra_pnginfo parameter in advanced workflows to dynamically adjust the separator based on specific conditions or metadata, allowing for greater control over the prompt structure.

Prompt Randomizer Common Errors and Solutions:

Missing text input

  • Explanation: This error occurs when the required text parameter is not provided, resulting in an inability to generate a prompt.
  • Solution: Ensure that you provide a valid string for the text parameter, even if it is a simple or placeholder text, to enable the node to process the input.

Invalid prefix separator

  • Explanation: If the separator specified in the extra_pnginfo metadata is not valid or causes formatting issues, it can lead to unexpected prompt structures.
  • Solution: Verify the metadata settings and ensure that the separator is correctly defined and compatible with the desired prompt format. Adjust the workflow configuration if necessary to resolve the issue.

Prompt Randomizer Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-EreNodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.