Repeat (NUMBER)
The float range that quietly expects integers
- values
On paper this is the sibling of Repeat (INT): same idea, but the inputs are NUMBER type, so you can generate sequences of decimal values. In practice there's a catch you should know about before you build anything on it - the implementation doesn't actually do float arithmetic.
What it's supposed to do
You give it start (default 0), step (default 1), and count (default 10), and it hands you a values output: a list of numbers. Like its integer sibling, count means how many numbers you get, not where the sequence ends. So start=0, step=1, count=10 produces ten values from 0 up.
The intended use case is obvious: any time you need a sequence of fractional numbers on a wire - interpolation steps, weights to sweep, decimal seed ranges - a NUMBER-typed range is the natural fit. If it worked like advertised, it'd be the node you reach for instead of its INT cousin whenever decimals mattered.
The catch, from the source
I read the actual code rather than trust the README (which, for this pack, is one paragraph anyway). RF_RangeNumber calls Python's range() directly - the exact same line as RF_RangeInt. And Python's range() only accepts whole numbers. Feed it step=0.5 or start=1.5 and you get a TypeError: 'float' object cannot be interpreted as an integer in your console, and the node errors out mid-run.
Since ComfyUI delivers NUMBER inputs as floats, this means the node effectively works only when your values happen to be whole numbers anyway - at which point you'd be better served by the INT version that never trips over itself. It's a genuinely useful honesty check: the "NUMBER" in the name promises more than the implementation delivers.
Inputs and outputs
- start (NUMBER, default 0) - first value in the sequence
- step (NUMBER, default 1) - increment per value
- count (NUMBER, default 10) - number of values to emit
Output is values: a NUMBER list, wired into whatever iterates a batch.
Installing it
Same pack as everything else here: RF Nodes (foxtrot-roger/comfyui-rf-nodes). Install via ComfyUI Manager (search "RF Nodes"), or:
cd ComfyUI/custom_nodes
git clone https://github.com/foxtrot-roger/comfyui-rf-nodes
Then restart. No dependencies, no model files - the pack is pure Python with nothing to install.
What to do about it
If you need a decimal range, your realistic options are to keep the values whole (and just use RF_RangeInt), or grab a more maintained utility pack for fractional sequences. This node is worth knowing about because it's a trap you'd otherwise only discover after a baffling console error - but the fix is quick: don't hand it decimals.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| start | NUMBER | 0 | — |
| step | NUMBER | 1 | — |
| count | NUMBER | 10 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| values | NUMBER | — |