Array Random Sampler
Randomly select specified number of elements from an array with support for different sampling methods
API Documentation
Request Endpoint
POST /en/api/tools/array-random-sampler
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| arrayInput | textarea | Yes | - |
| delimiter | select | Yes | - |
| customDelimiter | text | No | - |
| sampleSize | number | No | - |
| samplingMethod | select | Yes | - |
| seed | number | No | - |
| allowDuplicates | checkbox | No | - |
| preserveOrder | checkbox | No | - |
| outputFormat | select | Yes | - |
Response Format
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
Text:
Text
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-array-random-sampler": {
"name": "array-random-sampler",
"description": "Randomly select specified number of elements from an array with support for different sampling methods",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=array-random-sampler",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
If you encounter any issues, please contact us at [email protected]