sampler_random_choice
Randomly select one item from a given array. Returns the chosen value and its position index. Ideal for sampling, randomization, or drawing winners.
Instructions
[sampler] Pick a single random item. Returns {choice, index}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| seed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |