secure_random
Draw one-off integers, floats, weighted choices, or non-repeating deals from the operating system's secure random source when you need unpredictable rather than reproducible values.
Instructions
One-off values from the operating system's secure source: integers, floats, choices from a list, or a deal without repeats. Not repeatable; use random or deal with a seed for results that can be reproduced.
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": {
"kind": "<kind>"
},
"name": "secure_random"
}
}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 | |
| kind | Yes | What to draw: 'integer' (needs low and high), 'float' (in [0, 1)), 'choice' (needs items, optional weights), 'deal' (items, or low and high, with no repeats) | |
| count | No | How many values to return, at most 1000 | |
| items | No | The items to draw from: any JSON values, returned as given | |
| weights | No | Non-negative integer weights, one per item; omitted means equal |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | The values drawn |