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

NameTypeDescription
minintegerLowest value (inclusive). Default 1.
maxintegerHighest value (inclusive). Default 100.
countintegerHow many numbers, 1–1000. Default 1.
uniquebooleanNo repeats. Default false.
dicestringDice notation like "2d6" or "d20"; overrides min/max/count.
shufflearrayA 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:

call_tool arguments
{
  "name": "math__random_number",
  "arguments": {}
}

Or connect the Calculators server directly, which lists 28 tools including this one:

Run in your terminal
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 ….

More from Calculators