Visit ComfyUI Online for ready-to-use ComfyUI environment
Randomly select text from a string using a specified delimiter for creative variability in AI art projects.
The text-util-random-text
node is designed to help you randomly select a piece of text from a given string, based on a specified delimiter. This node is particularly useful when you have a list of options or phrases separated by a specific character and you want to randomly pick one of them. By providing a seed value, you can ensure that the random selection is reproducible, which is beneficial for creating consistent outputs in your AI art projects. This node simplifies the process of random text selection, making it easier to introduce variability and creativity into your work.
This parameter takes a string input that contains multiple pieces of text separated by a specified delimiter. The node will split this string based on the delimiter and randomly select one of the resulting pieces. The default value is an empty string (''
), and it does not support multiline input.
The seed parameter is an integer that initializes the random number generator. By setting a specific seed value, you can ensure that the random selection process is reproducible, meaning the same seed will always produce the same random choice. This is useful for maintaining consistency in your outputs. The default value is 0
, with a minimum value of 0
and a maximum value of 0xffffffffffffffff
.
This parameter specifies the delimiter character used to split the input text into separate pieces. The node will use this character to divide the string and then randomly select one of the resulting segments. The default value is the pipe character ('|'
), and it does not support multiline input.
This output parameter returns the randomly selected piece of text from the input string. It is the result of splitting the input text by the specified delimiter and choosing one of the segments based on the provided seed value.
This output parameter returns the seed value used for the random selection process. This ensures that the random choice can be reproduced if the same seed is used again.
text
parameter is an empty string.text
parameter.© Copyright 2024 RunComfy. All Rights Reserved.