ComfyUI > Nodes > Mikey Nodes > Range Integer (Mikey)

ComfyUI Node: Range Integer (Mikey)

Class Name

Range Integer

Category
Mikey/Utils
Author
bash-j (Account age: 4196days)
Extension
Mikey Nodes
Latest Updated
2024-06-15
Github Stars
0.08K

How to Install Mikey Nodes

Install this extension via the ComfyUI Manager by searching for Mikey Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Mikey Nodes 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Range Integer (Mikey) Description

Generates integer list within range, selects number based on offset for deterministic selection in AI art applications.

Range Integer (Mikey):

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.

Range Integer (Mikey) Input Parameters:

start

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.

end

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.

step

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.

seed

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.

Range Integer (Mikey) Output Parameters:

INT

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.

STRING

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.

Range Integer (Mikey) Usage Tips:

  • To generate a sequence of numbers with a specific interval, adjust the step parameter accordingly.
  • Use the seed parameter to ensure that the same number is selected each time the node is executed, which is useful for reproducible results.
  • Experiment with different start and end values to create various ranges of numbers for different applications.

Range Integer (Mikey) Common Errors and Solutions:

"Step value cannot be zero"

  • Explanation: The step parameter is set to zero, which would result in an infinite loop when generating the range.
  • Solution: Ensure that the step parameter is set to a non-zero value.

"End value must be greater than start value"

  • Explanation: The end parameter is set to a value that is less than or equal to the start parameter, resulting in an invalid range.
  • Solution: Adjust the end parameter to be greater than the start parameter.

"Seed value out of range"

  • Explanation: The seed parameter results in an offset that is outside the bounds of the generated list.
  • Solution: Ensure that the seed parameter is within a valid range that corresponds to the length of the generated list.

Range Integer (Mikey) Related Nodes

Go back to the extension to check out more related nodes.
Mikey Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.