Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-Desert-Pixel-Nodes > DP Random Mode Controller

ComfyUI Node: DP Random Mode Controller

Class Name

DP Random Mode Controller

Category
DP/utils
Author
DesertPixelAi (Account age: 840days)
Extension
ComfyUI-Desert-Pixel-Nodes
Latest Updated
2025-06-22
Github Stars
0.03K

How to Install ComfyUI-Desert-Pixel-Nodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-Desert-Pixel-Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Desert-Pixel-Nodes 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

DP Random Mode Controller Description

A utility node offering diverse randomization modes for generating unique artistic prompts.

DP Random Mode Controller:

The DP Random Mode Controller is a versatile utility node designed to enhance your creative workflow by providing a variety of randomization modes for generating unique and diverse prompts. This node allows you to select from several predefined random modes, each tailored to inspire different artistic themes such as "Crazy Random Prompt," "Random Psychedelic Punk," "Random Superhero," "Random Vehicle," "Random Letter Style," and an "All Mixed" option that combines elements from all modes. By leveraging these modes, you can inject spontaneity and creativity into your projects, making it an invaluable tool for AI artists seeking to explore new ideas and styles. The node also includes a token limit feature, enabling you to control the complexity and length of the generated prompts, ensuring they fit within your desired parameters.

DP Random Mode Controller Input Parameters:

random_mode

The random_mode parameter allows you to choose from a list of predefined randomization themes, including "Crazy Random Prompt," "Random Psychedelic Punk," "Random Superhero," "Random Vehicle," "Random Letter Style," and "All Mixed." Each mode offers a unique style and inspiration for generating prompts, helping you explore different creative directions. The default mode is "Crazy Random Prompt," providing a broad and unpredictable range of ideas.

random_token_limit

The random_token_limit parameter is an integer value that sets the maximum number of tokens for the generated prompt. This allows you to control the length and complexity of the output, ensuring it meets your specific requirements. The default value is 72, with a minimum of 0 and a maximum of 512, giving you flexibility in managing the prompt's verbosity.

DP Random Mode Controller Output Parameters:

random_mode

The random_mode output reflects the selected randomization theme, confirming which mode was used to generate the prompt. This output is crucial for understanding the context and style of the generated content, allowing you to trace back the creative inspiration behind the prompt.

random_token_limit

The random_token_limit output provides the integer value that was used to limit the number of tokens in the generated prompt. This output helps you verify that the prompt adheres to the specified length constraints, ensuring consistency and control over the output's complexity.

DP Random Mode Controller Usage Tips:

  • Experiment with different random_mode settings to discover new creative directions and styles. Each mode offers a distinct thematic approach, so try them all to see which best suits your project needs.
  • Adjust the random_token_limit to control the verbosity of your prompts. A lower limit can produce concise and focused prompts, while a higher limit allows for more detailed and elaborate ideas.

DP Random Mode Controller Common Errors and Solutions:

Invalid random_mode selection

  • Explanation: This error occurs when an invalid or unsupported random_mode is selected.
  • Solution: Ensure that the random_mode parameter is set to one of the predefined options: "Crazy Random Prompt," "Random Psychedelic Punk," "Random Superhero," "Random Vehicle," "Random Letter Style," or "All Mixed."

random_token_limit out of range

  • Explanation: This error happens when the random_token_limit is set outside the allowed range of 0 to 512.
  • Solution: Adjust the random_token_limit to be within the valid range. The default value is 72, but you can set it anywhere between 0 and 512 to suit your needs.

DP Random Mode Controller Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Desert-Pixel-Nodes
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.

DP Random Mode Controller