Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate sequential integer numbers within a user-defined range with automatic reset and seed value support for consistency.
The SequentialNumberGenerator
is a custom node designed for ComfyUI that facilitates the generation of sequential integer numbers within a user-defined range. This node is particularly useful for scenarios where you need a series of numbers that cycle through a specified range, automatically resetting to the start once the end of the range is reached. By leveraging a seed value, the node ensures that the sequence can be consistently reproduced, making it ideal for applications that require predictable and repeatable number sequences. This functionality is beneficial for AI artists who need to maintain a consistent pattern or order in their creative processes, providing a reliable method to generate numbers in a controlled and systematic manner.
The start
parameter defines the beginning of the range for the sequential number generation. It determines the smallest integer that can be generated by the node. The value of start
must be less than or equal to the end
parameter to ensure a valid range. The minimum value for start
is -2,147,483,648, and the maximum is 2,147,483,647, with a default value of 0. This parameter is crucial as it sets the lower boundary of the sequence, influencing the initial point from which numbers are generated.
The end
parameter specifies the end of the range for the sequential number generation. It sets the largest integer that can be generated by the node. The end
value must be greater than or equal to the start
parameter to form a valid range. The minimum value for end
is -2,147,483,648, and the maximum is 2,147,483,647, with a default value of 1. This parameter is essential as it defines the upper boundary of the sequence, determining the point at which the sequence will reset back to the start
.
The seed
parameter is used to initialize the sequence generation, ensuring that the same sequence of numbers can be reproduced consistently. It maps to a valid value within the specified range, allowing for predictable and repeatable number sequences. The minimum value for seed
is 0, and the maximum is 18,446,744,073,709,551,615, with a default value of 0. This parameter is important for maintaining consistency across different runs, especially when the same sequence is required for reproducibility in creative projects.
The value
output represents the current integer generated by the node within the specified range. It is the number that corresponds to the current position in the sequence, based on the start
, end
, and seed
parameters. This output is crucial for users who need to utilize the current number in their workflows, providing a direct representation of the sequence's current state.
The next
output indicates the subsequent integer in the sequence that will be generated after the current value
. It provides insight into the next number in the cycle, allowing users to anticipate the sequence's progression. This output is valuable for planning and understanding the sequence's flow, especially when integrating the node into larger processes that depend on sequential number generation.
start
parameter is always less than or equal to the end
parameter to avoid errors and ensure a valid range for number generation.seed
parameter to maintain consistency across different runs, especially when you need to reproduce the same sequence of numbers for your projects.start
and end
parameters to control the range and cycle of the sequence, tailoring it to fit the specific needs of your creative workflow.start
parameter is set to a value greater than the end
parameter, resulting in an invalid range.start
parameter is less than or equal to the end
parameter to define a valid range for number generation. Adjust the values accordingly to resolve the error.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.