secure_random_int
Generate a cryptographically secure random integer between 0 and a specified upper bound (exclusive).
Instructions
Generate a secure random integer below upper_bound.
Args: upper_bound: Upper bound (exclusive)
Returns: Random integer in range [0, upper_bound)
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": {
"upper_bound": "<upper_bound>"
},
"name": "secure_random_int"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upper_bound | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |