ComfyUI Node
RandomInt
Returns a fixed, incremented, decremented, or randomized integer within the selected range constraint.
RandomInt
- INT
◄value0►
◄constraint▾►
◄min-1►
◄max1►
◄control_after_generationRandomize►
Categorymath/int
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| value | INT | 0-9223372036854776000–9223372036854776000 | — |
| constraint | COMBO | 6 options: Full range, 1 to max Int, 0 to max Int, Min int to -1, Min int to 0, Custom min/max | |
| min | INT | -1-9223372036854776000–9223372036854776000 | — |
| max | INT | 1-9223372036854776000–9223372036854776000 | — |
| control_after_generation | COMBO | Randomize | 4 options: Fixed, Increment, Decrement, Randomize |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |