sample
Return N random items from a JSON array to preview large datasets without loading all data.
Instructions
Return N random items from an array.
Useful for previewing large datasets without loading everything.
Args: alias: The alias of the loaded document. path: Dot-notation path to the array. Empty means root. n: Number of items to sample (default 5). seed: Optional random seed for reproducible results.
Returns: N randomly selected items from the array.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| path | No | ||
| seed | No | ||
| alias | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |