Visit ComfyUI Online for ready-to-use ComfyUI environment
Generates integer list within range, selects number based on offset for deterministic selection in AI art applications.
The Range Integer node is designed to generate a list of integers within a specified range and select a specific number from that list based on an offset value. This node is particularly useful for tasks that require a sequence of numbers and a deterministic way to select a specific number from that sequence. By leveraging the seed value as the step in the range, it ensures that the selection process is both predictable and reproducible. This can be beneficial in various AI art applications where consistent and repeatable results are desired.
The start
parameter defines the beginning of the range of integers. It sets the initial value from which the sequence will start. The minimum value for this parameter is 0, and it can go up to a very large number (0xffffffffffffffff). The default value is 0. Adjusting this parameter will shift the entire range of generated numbers.
The end
parameter specifies the end of the range of integers. It determines the upper limit of the sequence, but this value is not included in the range. Similar to the start
parameter, the minimum value is 0, and the maximum is 0xffffffffffffffff. The default value is 0. Changing this parameter will extend or shorten the range of generated numbers.
The step
parameter indicates the interval between consecutive numbers in the range. It defines how much each number in the sequence will increment from the previous one. The minimum value is 0, and the maximum is 0xffffffffffffffff, with a default value of 0. Modifying this parameter will affect the density of numbers within the specified range.
The seed
parameter is used to determine the offset value for selecting a specific number from the generated list. It ensures that the selection process is consistent and reproducible. The minimum value is 0, and the maximum is 0xffffffffffffffff, with a default value of 0. This parameter is crucial for achieving deterministic results.
The INT
output parameter provides the selected integer from the generated list based on the offset value determined by the seed. This output is essential for applications that require a specific number from a sequence.
The STRING
output parameter returns the selected integer in string format. This can be useful for applications that require the number to be represented as text, such as labeling or logging purposes.
step
parameter accordingly.seed
parameter to ensure that the same number is selected each time the node is executed, which is useful for reproducible results.start
and end
values to create various ranges of numbers for different applications.step
parameter is set to zero, which would result in an infinite loop when generating the range.step
parameter is set to a non-zero value.end
parameter is set to a value that is less than or equal to the start
parameter, resulting in an invalid range.end
parameter to be greater than the start
parameter.seed
parameter results in an offset that is outside the bounds of the generated list.seed
parameter is within a valid range that corresponds to the length of the generated list.© Copyright 2024 RunComfy. All Rights Reserved.