ComfyUI > Nodes > ComfyUI-ListHelper > NumberListGenerator

ComfyUI Node: NumberListGenerator

Class Name

NumberListGenerator

Category
ListHelper
Author
dseditor (Account age: 1543days)
Extension
ComfyUI-ListHelper
Latest Updated
2025-12-09
Github Stars
0.05K

How to Install ComfyUI-ListHelper

Install this extension via the ComfyUI Manager by searching for ComfyUI-ListHelper
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-ListHelper 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

NumberListGenerator Description

Generate customizable numerical sequences for AI art with control over range, step size, and randomness.

NumberListGenerator:

The NumberListGenerator node is designed to create a sequence of numbers based on specified parameters, offering both flexibility and control over the generated list. This node is particularly useful for AI artists who need to generate numerical data for various creative applications, such as procedural art generation or data-driven design. By allowing you to define the range, step size, and count of numbers, as well as the option to randomize the sequence, this node provides a powerful tool for generating both ordered and randomized lists of integers and floating-point numbers. The ability to set a random seed ensures reproducibility, making it easier to achieve consistent results across different runs.

NumberListGenerator Input Parameters:

min_value

The min_value parameter sets the starting point of the number sequence. It determines the smallest number in the generated list. This parameter accepts floating-point numbers, with a default value of 0.0, a minimum of -10000.0, and a maximum of 10000.0. Adjusting this value allows you to control the lower bound of your number list, which is crucial for defining the range of your data.

max_value

The max_value parameter defines the upper limit of the number sequence. It specifies the largest number that can be included in the list. This parameter also accepts floating-point numbers, with a default value of 10.0, a minimum of -10000.0, and a maximum of 10000.0. Setting this value helps you control the upper bound of your number list, ensuring that the generated numbers do not exceed a certain threshold.

step

The step parameter determines the increment between consecutive numbers in the sequence. It is a floating-point number with a default value of 1.0, a minimum of 0.01, and a maximum of 1000.0. This parameter is essential for controlling the granularity of the number list, allowing you to generate sequences with precise intervals.

count

The count parameter specifies the total number of numbers to generate in the list. It is an integer with a default value of 10, a minimum of 1, and a maximum of 10000. This parameter is crucial for defining the length of your number list, enabling you to generate lists of varying sizes based on your needs.

random

The random parameter is a boolean that determines whether the generated number list should be randomized. By default, it is set to False, meaning the list will be generated in a sequential order. Setting this parameter to True will shuffle the list, providing a randomized sequence of numbers, which can be useful for applications requiring non-linear data.

seed

The seed parameter is an optional integer that sets the seed for the random number generator. It has a default value of -1, which means no specific seed is used, resulting in a different random sequence each time. Setting a specific seed ensures that the randomization process is reproducible, allowing you to generate the same sequence of numbers across different runs.

NumberListGenerator Output Parameters:

int_list

The int_list output is a list of integers derived from the generated number sequence. This list is particularly useful when you need whole numbers for your application, such as indexing or counting. The integers are obtained by converting the floating-point numbers in the sequence to their integer equivalents.

float_list

The float_list output is a list of floating-point numbers that represents the generated number sequence. This list retains the precision of the original sequence, making it suitable for applications that require decimal values, such as calculations or measurements.

total_count

The total_count output is an integer that indicates the total number of numbers generated in the sequence. This value is useful for verifying the size of the generated list and ensuring that it matches the specified count parameter.

NumberListGenerator Usage Tips:

  • To generate a sequence of numbers with specific intervals, adjust the step parameter to control the spacing between numbers.
  • Use the random parameter in conjunction with the seed parameter to create reproducible randomized sequences, which can be useful for testing or iterative design processes.
  • Ensure that the min_value and max_value parameters are set appropriately to define the desired range of your number list, preventing the generation of numbers outside your intended scope.

NumberListGenerator Common Errors and Solutions:

"ValueError: min_value must be less than max_value"

  • Explanation: This error occurs when the min_value is set to a value greater than or equal to the max_value.
  • Solution: Ensure that the min_value is less than the max_value to define a valid range for the number sequence.

"TypeError: step must be a positive number"

  • Explanation: This error arises when the step parameter is set to a non-positive value, which is not allowed.
  • Solution: Set the step parameter to a positive floating-point number to ensure proper incrementing in the number sequence.

"IndexError: count exceeds the possible number of steps"

  • Explanation: This error occurs when the count parameter is set too high, exceeding the number of possible steps between min_value and max_value.
  • Solution: Adjust the count, min_value, max_value, or step parameters to ensure that the number of steps is sufficient to generate the desired count of numbers.

NumberListGenerator Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-ListHelper
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.