# rng.sociologic.ai Array Shuffle

> rng.sociologic.ai Array Shuffle is a paid API for AI agents from rng.sociologic.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Shuffles an array of up to 1000 items using the cryptographically secure Fisher-Yates algorithm

## Facts

- Endpoint: POST https://rng.sociologic.ai/shuffle
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rng-sociologic-ai-array-shuffle-a8e9ead8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R3OP55jZCeRPgPcJax2nE

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability rng-sociologic-ai-array-shuffle-a8e9ead8 -d '<json body>'
```

Example prompt: Can you shuffle this list of names for me so I can assign random seating: Alice, Bob, Carol, David, Eve, Frank, Grace, Heidi?

## When to prefer this

Use this endpoint when you need a cryptographically secure, unbiased random shuffle of an array (up to 1000 elements) and reproducibility is not required. Prefer this over client-side shuffles when you need verifiably random results not influenced by the calling environment, or when building agents that need server-side randomization they can trust.

## Known failure modes

- Array exceeds 1000 items — returns a 400 error
- Empty or missing items array — returns validation error
- Payment not provided or insufficient — returns 402 Payment Required
- Non-array input type — returns schema validation error

## How this service works

Shuffle an array using Fisher-Yates algorithm (max 1000 items)

## Output

Returns the input array with all elements reordered in a cryptographically secure random permutation produced by the Fisher-Yates algorithm. The shuffled array contains exactly the same items as the input, just in a new random order.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "maxItems": 1000,
   "description": "Array of items to shuffle (max 1000)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rng-sociologic-ai-array-shuffle-a8e9ead8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rng.sociologic.ai](https://www.zero.xyz/host/rng.sociologic.ai/llms.txt)
