Home / Servers / Calculators / random_number
Random number
An MCP tool from the Calculators server, hosted on mcp.hjlabs.in.
Cryptographically random integers in a range, with or without repeats; or shuffle a list; or roll dice ("3d6"). Use when you need genuine randomness rather than a made-up number.
Name on the gateway: math__random_number · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
min | integer | Lowest value (inclusive). Default 1. |
max | integer | Highest value (inclusive). Default 100. |
count | integer | How many numbers, 1–1000. Default 1. |
unique | boolean | No repeats. Default false. |
dice | string | Dice notation like "2d6" or "d20"; overrides min/max/count. |
shuffle | array | A list to shuffle instead; overrides everything else. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "math__random_number",
"arguments": {}
}Or connect the Calculators server directly, which lists 28 tools including this one:
claude mcp add --transport http hj-math https://mcp.hjlabs.in/mcp/math \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the random number tool with min set to ….