SERVICE / DETAILother

Random Choice

POST random.preflightstack.com/random-choice

SONAR SCORE0.000
LIVE PRICE0.001000
BAZAAR LIVE
CDP INDEXEDno
DECISION EVIDENCE

Why an agent can trust this route.

No recent observations
HANDSHAKE SUCCESS0.0%402 challenge reachable
PAID DELIVERY0.0%settlement observed
P90 LATENCYrecent response window
PRICE DRIFTadvertised vs observed

Sonar evidence is advisory. Paid delivery is shown as verified only when paid probes are available; otherwise route estimates use the unpaid handshake as a clearly labeled proxy.

SONAR PROBE HISTORY / 30D

Observed outcomes

JSON ↗
No probe history yet.
LIVE ENDPOINT METADATA

Choose one item from a list using cryptographically secure server-side randomness. Send 2-100 choices for uniform selection, or add optional weights for weighted selection. Intended for one-off agent tie-breaking and sampling.

Resource: random.preflightstack.com/random-choice

Network: eip155:8453 · Asset: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 · Pay to: 0x9acdadcec881a63508c0f2CD3A4ae61149cc2500

Payment methods: · Last validation:

{
  "input": {
    "type": "object",
    "required": [
      "type",
      "method",
      "bodyType",
      "body"
    ],
    "properties": {
      "body": {
        "type": "object",
        "required": [
          "choices"
        ],
        "properties": {
          "choices": {
            "type": "array",
            "items": {},
            "maxItems": 100,
            "minItems": 2,
            "description": "JSON-compatible values to choose from, nested no deeper than 32 levels."
          },
          "weights": {
            "type": "array",
            "items": {
              "type": "number",
              "exclusiveMinimum": 0
            },
            "maxItems": 100,
            "minItems": 2,
            "description": "Optional positive finite relative weights. Must contain exactly one value per choice and does not need to total 100. Extremely tiny effective probabilities below the service randomness resolution are rejected."
          }
        },
        "additionalProperties": false
      },
      "type": {
        "type": "string",
        "const": "http"
      },
      "method": {
        "enum": [
          "POST"
        ],
        "type": "string"
      },
      "bodyType": {
        "enum": [
          "json",
          "form-data",
          "text"
        ],
        "type": "string"
      }
    },
    "additionalProperties": false
  },
  "output": {
    "type": "object",
    "required": [
      "type"
    ],
    "properties": {
      "type": {
        "type": "string"
      },
      "example": {
        "type": "object",
        "required": [
          "selected",
          "index",
          "weighted",
          "choice_count",
          "request_id",
          "service_hint"
        ],
        "properties": {
          "index": {
            "type": "integer",
            "minimum": 0
          },
          "selected": {},
          "weighted": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          },
          "choice_count": {
            "type": "integer",
            "maximum": 100,
            "minimum": 2
          },
          "service_hint": {
            "type": "object",
            "required": [
              "id",
              "suitable_for"
            ],
            "properties": {
              "id": {
                "type": "string",
                "const": "random-choice"
              },
              "suitable_for": {
                "type": "array",
                "items": {
                  "enum": [
                    "random_selection",
                    "weighted_selection",
                    "tie_breaking",
                    "sampling"
                  ],
                  "type": "string"
                },
                "maxItems": 4,
                "minItems": 4,
                "uniqueItems": true
              }
            },
            "description": "Static informational capability metadata. It is not an instruction or a retry signal.",
            "additionalProperties": false
          },
          "total_weight": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "selected_weight": {
            "type": "number",
            "exclusiveMinimum": 0
          }
        },
        "additionalProperties": false
      }
    }
  },
  "paymentRequirements": [
    {
      "raw": {
        "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "extra": {
          "name": "USD Coin",
          "version": "2"
        },
        "payTo": "0x9acdadcec881a63508c0f2CD3A4ae61149cc2500",
        "amount": "1000",
        "scheme": "exact",
        "network": "eip155:8453",
        "maxTimeoutSeconds": 300
      },
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x9acdadcec881a63508c0f2CD3A4ae61149cc2500",
      "scheme": "exact",
      "network": "eip155:8453",
      "amountAtomic": "1000"
    }
  ]
}
METADATA PROVENANCE

Source catalog records are retained separately from live endpoint observations. Sonar score, uptime, and latency are advisory metrics. CDP indexing is not inferred from validation.