ComfyUI Node
π― YFG Random.org True Random Number (V2)
Random.org True Random Number (V2) (v2.0.1) Generates a true random integer using random.org. Uniqueness options: β’ ensure_unique=true + use_shuffle_bag=true: uses a shuffle-bag (no repeats until the range is exhausted, then reshuffles). β’ If the range is very large, the node automatically falls back to history-based de-dup to avoid huge memory use. API Key: β’ Set env var RANDOM_ORG_API_KEY, or create random_org_api_key.json next to this file: {"api_key":"..."}
π― YFG Random.org True Random Number (V2)
- number
- float
- int
βminimum0.00βΊ
βmaximum10.00βΊ
βmoderandomβΊ
βensure_uniquetrueβΊ
βunique_scoperangeβΊ
βhistory_size100βΊ
βtime_window_sec0βΊ
βretry_limit20βΊ
βuse_shuffle_bagtrueβΊ
Categoryπ― YFG/π’ Numbers
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| minimum | FLOAT | 0.00-9223372036854776000β9223372036854776000 | Lower bound (inclusive). Floats are converted to integers via int(). |
| maximum | FLOAT | 10.00-9223372036854776000β9223372036854776000 | Upper bound (inclusive). Floats are converted to integers via int(). |
| mode | COMBO | random | random: call random.org. fixed: return minimum deterministically (cacheable). |
| ensure_uniqueopt | BOOLEAN | true | If true, avoids repeats using shuffle-bag (preferred) or history de-dup (fallback). |
| unique_scopeopt | COMBO | range | range: uniqueness tracked per (minimum,maximum). global: shared across all ranges. |
| history_sizeopt | INT | 1001β100000 | Used by history-based de-dup (and as extra guard when global scope is enabled). |
| time_window_secopt | INT | 00β86400 | If >0, values older than this many seconds are forgotten for de-dup checks. |
| retry_limitopt | INT | 200β1000 | How many times to try finding a non-duplicate when using history-based de-dup (or global checks). |
| use_shuffle_bagopt | BOOLEAN | true | If true and range size <= 200,000, use shuffle-bag. Otherwise fall back. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| number | NUMBER | ComfyUI NUMBER output (typically behaves like a float). |
| float | FLOAT | Same value as a Python float. |
| int | INT | Same value as a Python int. |