Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate customizable numerical sequences for AI art with control over range, step size, and randomness.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
step parameter to control the spacing between numbers.random parameter in conjunction with the seed parameter to create reproducible randomized sequences, which can be useful for testing or iterative design processes.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.min_value is set to a value greater than or equal to the max_value.min_value is less than the max_value to define a valid range for the number sequence.step parameter is set to a non-positive value, which is not allowed.step parameter to a positive floating-point number to ensure proper incrementing in the number sequence.count parameter is set too high, exceeding the number of possible steps between min_value and max_value.count, min_value, max_value, or step parameters to ensure that the number of steps is sufficient to generate the desired count of numbers.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.