Nodes/ComfyMath/RandomInt
ComfyUI Node

RandomInt

Returns a fixed, incremented, decremented, or randomized integer within the selected range constraint.

By rabanti-github·Created about a month ago·Updated 18 days ago· 0
RandomInt
    • INT
    value0
    constraint
    min-1
    max1
    control_after_generationRandomize
    Categorymath/int

    Inputs (5)

    NameTypeDefaultDescription
    valueINT0-9223372036854776000–9223372036854776000
    constraintCOMBO6 options: Full range, 1 to max Int, 0 to max Int, Min int to -1, Min int to 0, Custom min/max
    minINT-1-9223372036854776000–9223372036854776000
    maxINT1-9223372036854776000–9223372036854776000
    control_after_generationCOMBORandomize4 options: Fixed, Increment, Decrement, Randomize

    Outputs (1)

    NameTypeDescription
    INTINT