Visit ComfyUI Online for ready-to-use ComfyUI environment
Randomly shuffle list of float numbers for creative variability with seed control.
The LogicUtil_RandomShuffleFloat node is designed to take a list of floating-point numbers, shuffle them randomly, and return the shuffled list. This node is particularly useful when you need to introduce randomness into your data processing or artistic workflows, ensuring that the order of elements is unpredictable. By leveraging a seed value, you can control the randomness to produce repeatable results, which is beneficial for debugging or creating consistent outputs across different runs. The primary goal of this node is to provide a simple yet powerful way to randomize the order of float values, enhancing the variability and creativity in your projects.
This parameter takes a string of floating-point numbers separated by a specified delimiter. The string is parsed and split into individual float values that will be shuffled. The default value is "1.0$2.0$3.0", and you can customize it to include any sequence of floats separated by your chosen delimiter.
The separator parameter defines the character used to split the input string into individual float values. By default, this is set to "$", but you can change it to any character that suits your input format. This flexibility allows you to work with various data formats without needing to preprocess your input strings.
The seed parameter is an integer that initializes the random number generator used for shuffling. By setting a specific seed value, you can ensure that the shuffling process is repeatable, producing the same output for the same input and seed. The default value is 0, and it can range from 0 to 9999999999.
The output is a single string containing the shuffled list of float values, separated by the same delimiter used in the input. This shuffled string can be used directly in subsequent nodes or processes, providing a randomized order of the original float values.
© Copyright 2024 RunComfy. All Rights Reserved.