Visit ComfyUI Online for ready-to-use ComfyUI environment
Shuffle list of integers randomly with seed for reproducible results.
The LogicUtil_RandomShuffleInt
node is designed to take a list of integers, shuffle them randomly, and return the shuffled list. This node is particularly useful when you need to randomize the order of a sequence of numbers, which can be beneficial in various creative and computational tasks. By providing a seed value, you can ensure that the shuffling process is reproducible, meaning the same input and seed will always produce the same shuffled output. This feature is especially valuable for maintaining consistency in randomized processes across different runs.
This parameter takes a string of integers separated by a specified delimiter. The string is split into individual integers based on the separator, which are then shuffled. The default value is "1$2$3"
, meaning the integers 1, 2, and 3 will be shuffled. This parameter allows you to define the list of integers you want to shuffle.
The separator parameter specifies the character used to split the input_string
into individual integers. The default value is "$"
. This allows you to customize how the input string is parsed, making it flexible to different formats of input data.
The seed parameter is an integer that initializes the random number generator used for shuffling. The default value is 0
, and it can range from 0
to 9999999999
. By setting a specific seed, you can ensure that the shuffling process is reproducible, which is useful for debugging and consistency in results.
The output is a single string that contains the shuffled list of integers, separated by the same delimiter used in the input. This output allows you to easily see the new order of the integers after shuffling, which can then be used in subsequent nodes or processes.
© Copyright 2024 RunComfy. All Rights Reserved.