๐ฒ Random Float
A seeded random number between two values, in FLOAT and STRING
- FLOAT
- STRING
About as simple as this pack gets: give it a minimum and a maximum, and it returns a random float somewhere in between. The only real design choice is that it hands you the result two ways at once, which quietly saves you a node you'd otherwise need to add.
How it works
Set min_value and max_value, and the node rolls a float in that range using seed to control the randomness - same seed, same result, which matters if you want a reproducible run. Change the seed's control widget to randomize and you get a fresh value every queue; leave it on fixed and it's stable across runs.
Where this earns its keep over just typing a number into a widget is anywhere you want randomized-but-controllable numeric variation feeding into something like CFG, denoise strength, or a custom node's float parameter - especially paired with one of this pack's loop nodes to sweep a range across a batch instead of one value at a time.
The inputs and outputs that matter
min_value(default 1) andmax_value(default 10) - the range to roll within.seed(0 to 4,294,967,294, default 0) - controls the roll; pair with the standard fixed/increment/decrement/randomize control widget next to it.- Two outputs come out together: FLOAT (the raw number, for wiring into anything expecting a float widget) and STRING (the same value as text, for anywhere you want to display it or feed it into a text-based node without a separate converter).
How to install it
Through ComfyUI Manager: search Bjornulf_custom_nodes, install, restart ComfyUI. Or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/justUmen/Bjornulf_custom_nodes
cd into the folder, pip install -r requirements.txt (a venv is the tidier route), restart. This is one of the simplest nodes in the pack - no external calls, no heavy dependency of its own - but it still lives in the same shared package as the rest, so it needs the overall requirements.txt to import cleanly.
Common issues
If you're seeing the exact same float on every run when you expected variation, check the seed's control widget - it's probably set to fixed. Set it to randomize for a fresh roll each queue, or leave it fixed deliberately if you're trying to reproduce a specific run.
Beyond that, there's genuinely not much that goes wrong here - it's a small, self-contained node. If it's missing from your node search entirely rather than just misbehaving, that's almost always a pack-wide import failure (a missing dependency elsewhere in the shared requirements.txt), not this node specifically - check your ComfyUI console on startup for the actual error.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| min_value | FLOAT | 1.00 | โ |
| max_value | FLOAT | 10.00 | โ |
| seed | INT | 00โ4294967294 | โ |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| FLOAT | FLOAT | โ |
| STRING | STRING | โ |