{
  "format": "delx/intent-card/v1",
  "id": "seeded-random-sample-api",
  "intent": "Seeded Random Sample for an agent workflow",
  "title": "Seeded Random Sample API for agents",
  "description": "Select a reproducible sample without replacement from a bounded caller-supplied list. Use when multiple agents or retries must reach the same selection from the same seed. Returns sampled values, original indices, and a seed hash for $0.001 USDC via x402 on Base; local-only, stateless, and no input retention.",
  "keywords": [
    "Seeded Random Sample API",
    "Seeded Random Sample for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/seeded-random-sample-api",
  "machine_url": "https://commerce.delx.ai/intents/seeded-random-sample-api.json",
  "recommendation": {
    "tool_name": "util_seeded_random_sample",
    "service_name": "Seeded Random Sample",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/seeded-random-sample",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "maxItems": 1000
        },
        "count": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000
        },
        "seed": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        }
      },
      "required": [
        "items",
        "count",
        "seed"
      ],
      "additionalProperties": false
    },
    "example_input": {
      "items": [
        "alpha",
        "beta",
        "gamma",
        "delta"
      ],
      "count": 2,
      "seed": "workflow-42"
    },
    "example_output": {
      "schema": "delx/util-seeded-random-sample/v1",
      "sample": [
        "gamma",
        "beta"
      ],
      "indices": [
        2,
        1
      ],
      "count": 2,
      "source_count": 4,
      "without_replacement": true,
      "seed_sha256": "f55bbb81faa69aaf4936ce9f0aa962c442851e4550566b83cc10573d585a0ed2"
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/seeded-random-sample -m POST -H 'x-delx-source: intent-card-seeded-random-sample-api' --max-amount 0.001 -b '{\"items\":[\"alpha\",\"beta\",\"gamma\",\"delta\"],\"count\":2,\"seed\":\"workflow-42\"}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-seeded-random-sample-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/seeded-random-sample"
  }
}
