Visit ComfyUI Online for ready-to-use ComfyUI environment
Randomly select a line from text block for varied outputs with reproducible randomness in WAS Suite Text category.
The Text Random Line node is designed to randomly select a line from a given block of text. This can be particularly useful for generating varied and dynamic text outputs from a predefined set of lines, such as prompts, quotes, or any multiline text data. By leveraging a seed value, the node ensures that the random selection can be reproducible, which is beneficial for consistency in outputs across different runs. This node is part of the WAS Suite and falls under the Text category, making it a versatile tool for AI artists looking to introduce randomness and variability into their text-based projects.
The text
parameter is a multiline string input that contains the block of text from which a random line will be selected. Each line in this block should be separated by a newline character (\n
). This parameter is essential as it provides the source from which the random selection will be made. The input type for this parameter is STRING
, and it is required for the node to function.
The seed
parameter is an integer that sets the seed for the random number generator. This ensures that the random selection of lines can be reproducible if the same seed is used again. The seed value can range from 0 to 0xffffffffffffffff (a very large number), with a default value of 0. By setting this parameter, you can control the randomness and ensure consistent results across different runs.
The output parameter is a single line of text randomly selected from the input block of text. This output is of type STRING
and represents one of the lines from the provided multiline text, chosen based on the specified seed value. The selected line can be used in various applications, such as generating prompts, quotes, or any other text-based content that benefits from random selection.
\n
). Verify that the text block is not empty and contains enough lines for random selection.© Copyright 2024 RunComfy. All Rights Reserved.