ComfyUI Node
_.sampleSize
Produce a random sample from the list. Pass a number to return n random elements from the list. Otherwise a single random item will be returned.
_.sampleSize
- obj
- guard
- LIST
◄n1►
Categoryovum/underscore
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| objopt | * | Primary input object. Also accepts _.CHAIN to continue chaining. | |
| nopt | INT | 1 | n (int) |
| guardopt | * | guard: JSON allowed for arrays/objects where applicable. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LIST | LIST | — |