{"uid":"cap_yxk3Sx-Ti7WMzFSD3Z-os","slug":"delx-seeded-derangement-0eb86222","name":"Delx Seeded Derangement","description":"Seeded Derangement: Seeded Derangement finds a reproducible permutation where no item keeps its position from bounded caller-supplied values without an external provider. Call Seeded Derangement when an agent needs a reproducible decision that another run can independently replay. Returns the deterministic selection plus seed provenance, population bounds, and the operation-specific outcome for Seeded Derangement as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party,…","url":"https://api.delx.ai/api/v1/x402/seeded-derangement","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"string","maxLength":8192,"description":"Seed supplied to Seeded Derangement; used only for this bounded calculation and processed in memory without retention."},"items":{"type":"array","items":{"type":"string","maxLength":8192},"maxItems":256,"description":"Items supplied to Seeded Derangement; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"items":["d","c","b","a"],"deranged":true},"schema":"delx/util-seeded-derangement/v1","status":"pass","evidence":{"retained":false,"input_sha256":"f561874b3e88794b12ca33fdf8a62ffe0b8f93dd08edf86088c58253e0378b49","external_calls":0},"operation":"seeded_decision:seeded_derangement"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ejPoYZM2ElK5TtQQRSyOF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Shuffle a list into a guaranteed derangement (no element remains in its original position) using a deterministic seed string.","exampleAgentPrompt":"Shuffle this list [\"alpha\",\"beta\",\"gamma\",\"delta\"] into a derangement — no element should stay in its original spot — using the seed \"my-fixed-seed-42\".","exampleUseCases":[{"title":"Reproducible quiz question shuffler","prompt":"I have a list of answer choices [\"Paris\",\"London\",\"Berlin\",\"Madrid\"] and I want to shuffle them so none stays in position, always the same way for a given quiz ID — use seed \"quiz-7734\"."},{"title":"Seeded card deal for game simulation","prompt":"Deal these cards [\"Ace\",\"King\",\"Queen\",\"Jack\",\"Ten\"] into a derangement using seed \"round-2-session-9\" so the deal is reproducible but no card ends up in its starting slot."},{"title":"A/B test variant assignment","prompt":"Take my condition labels [\"control\",\"variant-A\",\"variant-B\",\"variant-C\"] and produce a deranged ordering with seed \"experiment-2024-05\" so every label moves and the result is the same each run."}],"resultDescription":"Returns a JSON object with the reordered list under result.items, a boolean result.deranged confirming no element is in its original position, an input_sha256 hash of the inputs for auditability, a count of external_calls (always 0), a retained flag (always false), and an operation identifier. The schema version is included as delx/util-seeded-derangement/v1.","failureModes":["Input list too large (exceeds 256 items) — request rejected","Seed string exceeds 8192 characters — validation error","Single-element list cannot be deranged — deranged flag may be false or error returned","Empty list input — may return empty result or error","Malformed JSON body — 400 bad request"],"whenToPreferThis":"Use this endpoint when you need a guaranteed derangement (not just any shuffle) and require reproducibility via a seed — for example, in test fixtures, game logic, or controlled experiments where the same seed must always produce the same deranged order. Prefer it over generic shuffle utilities when the no-fixed-point constraint must be verified and attested, or when you need an audit trail (sha256 hash) proving the exact inputs used.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:20:00.981Z","isFirstParty":false}