ComfyUI > Nodes > ComfyUI-LogicUtils > Random Shuffle Int

ComfyUI Node: Random Shuffle Int

Class Name

RandomShuffleInt

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 Int Description

RandomShuffleInt shuffles integer sequences randomly, with optional seeding for repeatable results.

Random Shuffle Int:

The RandomShuffleInt node is designed to take a sequence of integers and shuffle them randomly, providing a new order each time it is executed. This node is particularly useful when you need to introduce randomness into a sequence of numbers, such as when creating randomized datasets or generating unique sequences for procedural content generation. By using a seed value, you can ensure that the shuffling process is repeatable, allowing for consistent results across different runs if desired. This node is a valuable tool for AI artists looking to add an element of unpredictability to their projects while maintaining control over the randomness through seeding.

Random Shuffle Int Input Parameters:

input_string

The input_string parameter is a string representation of the list of integers you wish to shuffle. This string should contain the integers separated by a specific character, which is defined by the separator parameter. The default value is "1$2$3", which means the integers 1, 2, and 3 will be shuffled. This parameter is crucial as it defines the set of numbers that will be randomized.

separator

The separator parameter specifies the character used to separate the integers in the input_string. By default, this is set to "$". This allows the node to correctly parse the input string into individual integers. Choosing the correct separator is important to ensure the input string is split correctly.

seed

The seed parameter is an integer that initializes the random number generator used for shuffling. It allows for reproducibility of the shuffle operation. If you use the same seed value, the shuffle will produce the same order of integers each time. The default value is 0, and it can range from 0 to 2^63-1. This parameter is useful when you need consistent results across different executions.

Random Shuffle Int Output Parameters:

STRING

The output is a single string that contains the shuffled list of integers. The integers are separated by the same separator used in the input. This output provides the new randomized order of the integers, which can be used directly in your projects or further processed as needed.

Random Shuffle Int Usage Tips:

  • Use a consistent seed value if you need the shuffle results to be repeatable across different runs.
  • Ensure that the separator character does not appear within the integers themselves to avoid incorrect parsing of the input_string.
  • Experiment with different seed values to explore various random sequences and find the one that best suits your creative needs.

Random Shuffle Int Common Errors and Solutions:

Incorrect separator usage

  • Explanation: If the separator used in the input_string does not match the separator parameter, the node will not correctly parse the integers.
  • Solution: Double-check that the separator in the input_string matches the separator parameter exactly.

Non-integer values in input_string

  • Explanation: The input_string should only contain integers. If non-integer values are present, the node may not function as expected.
  • Solution: Ensure that all values in the input_string are valid integers and correctly formatted.

Seed value out of range

  • Explanation: The seed value must be within the specified range of 0 to 2^63-1.
  • Solution: Verify that the seed value is within the acceptable range and adjust it if necessary.

Random Shuffle Int 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.