Visit ComfyUI Online for ready-to-use ComfyUI environment
Randomly select a line from text block for varied content generation with reproducible randomness.
The > Text Pick Random Line node is designed to randomly select a single line from a given block of text. This can be particularly useful in scenarios where you need to introduce an element of randomness or variability into your text-based workflows, such as generating random quotes, selecting random instructions, or creating dynamic content. By providing a seed value, you can ensure that the random selection is reproducible, which is beneficial for maintaining consistency across different runs. This node simplifies the process of picking a random line, making it a valuable tool for AI artists looking to add a touch of unpredictability to their text manipulations.
This parameter expects a string input that contains multiple lines of text. Each line should be separated by a newline character. The node will randomly select one of these lines. The text input is mandatory and must be provided for the node to function.
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 result in the same line being picked. This is useful for debugging or when you need consistent results. The seed value has a default of 0 and can range from 0 to 0xffffffffffffffff.
The output parameter is a string that contains the randomly selected line from the input text. This output can be used in subsequent nodes or processes where a single line of text is required. The selected line is determined based on the provided seed value, ensuring reproducibility if needed.
© Copyright 2024 RunComfy. All Rights Reserved.