random_sample
Select a specified number of unique items from an array at random, ensuring no repeats. Ideal for unbiased sampling or random draws.
Instructions
Randomly select multiple unique items from an array (without replacement)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"array": "<array>",
"count": "<count>"
},
"name": "random_sample"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| array | Yes | Array to sample from | |
| count | Yes | Number of items to select |