ComfyUI > Nodes > ComfyUI-LogicUtils > Random Shuffle Float

ComfyUI Node: Random Shuffle Float

Class Name

RandomShuffleFloat

Category
Logic Gates
Author
aria1th (Account age: 3016days)
Extension
ComfyUI-LogicUtils
Latest Updated
2026-01-21
Github Stars
0.1K

How to Install ComfyUI-LogicUtils

Install this extension via the ComfyUI Manager by searching for ComfyUI-LogicUtils
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-LogicUtils in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Random Shuffle Float Description

RandomShuffleFloat node randomly rearranges a list of floating-point numbers using a pseudo-random generator.

Random Shuffle Float:

The RandomShuffleFloat node is designed to rearrange a list of floating-point numbers in a random order. This node is particularly useful when you need to introduce randomness into a sequence of numbers, which can be beneficial in various creative and computational scenarios. By shuffling the list, you can ensure that the order of elements is unpredictable, which can be useful for tasks such as random sampling, data augmentation, or simply adding an element of surprise to your projects. The node leverages a pseudo-random number generator to achieve the shuffling, ensuring that the process can be repeated consistently if the same seed is used.

Random Shuffle Float Input Parameters:

input_string

The input_string parameter is a string representation of the list of floats you wish to shuffle. It should contain the numbers separated by a specific character, which you will define using the separator parameter. The default value is "1.0$2.0$3.0", which means the numbers are separated by the $ character. This parameter is crucial as it defines the initial sequence of numbers that will be shuffled.

separator

The separator parameter specifies the character used to split the input_string into individual float values. The default separator is "$". This parameter is important because it tells the node how to parse the input_string correctly to extract the list of numbers for shuffling.

seed

The seed parameter is an integer that initializes the random number generator used for shuffling. By setting a specific seed, you can ensure that the shuffling process is repeatable, meaning the same input will always produce the same shuffled output if the seed remains unchanged. The default value is 0, and it can range from 0 to 2**63-1.

Random Shuffle Float Output Parameters:

STRING

The output of the RandomShuffleFloat node is a single string that contains the shuffled list of floats. The numbers are returned in the same format as the input, separated by the specified separator. This output is essential as it provides the randomized sequence of numbers, which can be used in subsequent processes or analyses.

Random Shuffle Float Usage Tips:

  • To achieve consistent results across different runs, use the same seed value. This is particularly useful for debugging or when you need to reproduce specific results.
  • Experiment with different separator characters if your input data uses a unique delimiter. This ensures that the node correctly interprets your input string.

Random Shuffle Float Common Errors and Solutions:

Invalid input_string format

  • Explanation: The input_string does not contain valid float numbers or is not properly separated by the specified separator.
  • Solution: Ensure that the input_string is correctly formatted with valid float numbers and that the separator matches the character used in the string.

Seed value out of range

  • Explanation: The seed value provided is outside the acceptable range of 0 to 2**63-1.
  • Solution: Adjust the seed value to be within the specified range to avoid errors during execution.

Random Shuffle Float Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LogicUtils
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Random Shuffle Float