Randomizes the order of list items using a deterministic shuffle algorithm. Call via MCP in Cursor or Windsurf, or hit GET /v1/generate/shuffle with your array. Perfect for randomizing test data, creating varied outputs, or shuffling deck orders. Uses Fisher-Yates algorithm for uniform distribution.
curl "https://tinyfn.io/v1/generate/shuffle" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/generate/shuffle', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/generate/shuffle',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's generator tools:
{
"mcpServers": {
"tinyfn-generator": {
"url": "https://tinyfn.io/mcp/generator",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Use the shuffle_list MCP tool with your array as input. It returns the same items in randomized order while preserving data types.
Fisher-Yates shuffle algorithm, which guarantees uniform random distribution where each permutation has equal probability.
Yes, the tool preserves original data types - strings, numbers, objects, and booleans maintain their format after shuffling.
No, each call produces a different random order. For reproducible shuffles, you'd need to implement seeded randomization separately.
The tool handles large arrays efficiently, though exact limits depend on your API plan and timeout settings.
Get your free API key and start using Shuffle List in seconds.
Get Free API Key