Skip to main content
Glama

random-web3-mcp

generate_random_array

Generate a customizable random array for applications like batch number generation, sampling, test datasets, or task assignments. Specify length, value range, and duplication preferences for tailored results.

Instructions

Random Array Generator

Generate a random array of specified length

Args:
    salt (str, optional): Random number salt value. Defaults to "".
    array_length (int, optional): Array length. Defaults to 1.
    min_value (int, optional): Minimum value. Defaults to 0.
    max_value (int, optional): Maximum value. Defaults to 1000000.
    allow_duplicates (bool, optional): Allow duplicate values. Defaults to True.

Returns:
    str: JSON string containing the random array

Application Scenarios:
1. Batch random number generation
2. Random sampling
3. Test dataset generation
4. Random task assignment

Input Schema

NameRequiredDescriptionDefault
allow_duplicatesNo
array_lengthNo
max_valueNo
min_valueNo
saltNo

Input Schema (JSON Schema)

{ "properties": { "allow_duplicates": { "default": true, "title": "Allow Duplicates", "type": "boolean" }, "array_length": { "default": 1, "title": "Array Length", "type": "integer" }, "max_value": { "default": 1000000, "title": "Max Value", "type": "integer" }, "min_value": { "default": 0, "title": "Min Value", "type": "integer" }, "salt": { "default": "", "title": "Salt", "type": "string" } }, "title": "generate_random_arrayArguments", "type": "object" }

Other Tools from random-web3-mcp

Related Tools

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/suxiongye/random-web3-mcp'

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