Visit ComfyUI Online for ready-to-use ComfyUI environment
Randomly rearrange text segments based on separator for varied outputs with reproducible results.
The Text Shuffle node is designed to randomly rearrange the segments of a given text based on a specified separator. This node is particularly useful for creating varied and unique text outputs from a single input, which can be beneficial in creative writing, generating prompts, or any scenario where text variation is desired. By leveraging a seed value, the shuffling process can be made reproducible, ensuring that the same input and seed will always produce the same shuffled output. This feature is especially valuable for maintaining consistency in experiments or creative projects.
This parameter represents the input text that you want to shuffle. The text will be split into segments based on the specified separator, and these segments will be randomly rearranged. The type of this parameter is STRING
, and it is required for the node to function.
The separator parameter defines the character or string used to split the input text into segments. By default, this is set to a comma (,
), but you can specify any string that suits your needs. This parameter is of type STRING
and is not multiline.
The seed parameter is an integer value used to initialize the random number generator. This ensures that the shuffling process can be reproduced if the same seed is used again. The default value is 0
, and it can range from 0
to 0xffffffffffffffff
.
The output is the shuffled text, where the segments of the input text have been rearranged based on the specified separator and seed. This output is of type STRING
.
0
to 0xffffffffffffffff
.© Copyright 2024 RunComfy. All Rights Reserved.