deal
Draw non-repeating selections from a list or integer range using a seed; continue from the returned offset to get the next values without repeats.
Instructions
Deal from a deck without repeats: the deck is items, or the integers low to high, shuffled by the seed. Continue from next_offset, passing the same deck each call. Each seed deals the deck once; past the end, take a new seed.
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": {
"seed": "<seed>"
},
"name": "deal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| low | No | Integer bound, included in the range, as decimal digits such as "6". Ranges beyond 2^53 give their values as strings | |
| high | No | Integer bound, included in the range, as decimal digits such as "6". Ranges beyond 2^53 give their values as strings | |
| seed | Yes | Any string; secure_seed gives a fresh one. The same seed repeats results | |
| count | No | How many values to return, at most 1000 | |
| items | No | The items to draw from: any JSON values, returned as given | |
| offset | No | Position in the stream to start at, from 0, as decimal digits such as "0"; pass the last next_offset back as given | 0 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | Yes | The seed drawn from | |
| size | Yes | Items in the deck | |
| offset | Yes | Position of the first value | |
| values | Yes | The values drawn | |
| algorithm | Yes | Version of the algorithm; results repeat only within one | |
| remaining | Yes | Items still to deal for this seed | |
| next_offset | Yes | The offset that continues this stream |