Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate diverse prompts by combining text inputs, aiding AI artists in creating unique outputs with randomness.
The RandomPrompt node is designed to generate a variety of prompts by combining mutable and immutable text inputs. This node is particularly useful for AI artists who want to create diverse and dynamic prompts for their projects. By leveraging the ability to mix and match different text elements, the RandomPrompt node helps in producing unique and creative outputs. It can also randomly sample a specified number of prompts from the generated list, adding an element of unpredictability and creativity to the process. This node is essential for those looking to explore a wide range of prompt combinations without manually crafting each one.
This parameter defines the maximum number of prompts to generate. It controls the upper limit of the output list, ensuring that the number of generated prompts does not exceed this value. The minimum value is 1, the maximum value is 1000, and the default value is 9. Adjusting this parameter allows you to manage the volume of generated prompts according to your needs.
This is a multiline string input where you can provide the text that will be dynamically combined with the immutable prompt. Each line in this input represents a different mutable element that can be mixed with the immutable prompt. The default value is an empty string. This parameter is crucial for introducing variability and creativity into the generated prompts.
This is another multiline string input, but unlike the mutable prompt, this text remains constant in the generated prompts. Each line in this input represents a different immutable element that will be combined with the mutable prompt. The default value is 'sticker, Cartoon, ``'. This parameter ensures that certain elements of the prompt remain consistent, providing a stable base for the mutable elements to interact with.
This parameter determines whether the node should randomly sample a specified number of prompts from the generated list. It accepts two options: "enable" and "disable". When set to "enable", the node will randomly select prompts up to the max_count value. When set to "disable", the node will take the first max_count prompts from the list. This parameter adds flexibility in how the prompts are selected, allowing for either a random or sequential approach.
This optional parameter allows you to set a seed value for the random sampling process. It accepts any integer value, with a default of 0. By setting a seed, you can ensure reproducibility in the random sampling process, which is useful for generating consistent results across different runs.
The output of the RandomPrompt node is a list of generated prompts. Each prompt is a combination of the mutable and immutable text inputs, processed according to the specified parameters. This output is essential for providing a diverse set of prompts that can be used in various creative projects. The prompts are returned as a list of strings, each representing a unique combination of the input elements.
© Copyright 2024 RunComfy. All Rights Reserved.