Skip to main content
Glama

Random Number MCP

by zazencodes
MIT License
35
  • Apple

random_sample

Select k unique elements from a population without replacement using the Random Number MCP server. Ideal for generating unbiased, random subsets efficiently.

Instructions

Choose k unique items from population without replacement.

Args: population: List of items to choose from k: Number of items to choose

Returns: List of k unique chosen items

Input Schema

NameRequiredDescriptionDefault
kYes
populationYes

Input Schema (JSON Schema)

{ "properties": { "k": { "title": "K", "type": "integer" }, "population": { "items": {}, "title": "Population", "type": "array" } }, "required": [ "population", "k" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zazencodes/random-number-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server