Skip to main content
Glama

MCP Agent TypeScript Port

by waldzellai
UnsafeUniformArrayIntDistribution.js646 B
import { addArrayIntToNew, addOneToPositiveArrayInt, substractArrayIntToNew, trimArrayIntInplace, } from './internals/ArrayInt.js'; import { unsafeUniformArrayIntDistributionInternal } from './internals/UnsafeUniformArrayIntDistributionInternal.js'; export function unsafeUniformArrayIntDistribution(from, to, rng) { var rangeSize = trimArrayIntInplace(addOneToPositiveArrayInt(substractArrayIntToNew(to, from))); var emptyArrayIntData = rangeSize.data.slice(0); var g = unsafeUniformArrayIntDistributionInternal(emptyArrayIntData, rangeSize.data, rng); return trimArrayIntInplace(addArrayIntToNew({ sign: 1, data: g }, from)); }

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/waldzellai/mcp-agent-ts'

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