ToolAssay

Cryptographically secure random picker for 2-100 JSON choices

Cryptographically secure random picker for 2-100 JSON choices. Use for low-stakes one-off random or weighted selection, unbiased tie-breaking, and sampling. Returns the selected value and index, request ID, and weight totals for audit logs. $0.001 USDC per paid request. Not for stable assignments, gambling, security tokens, or consequential decisions; outcomes are not provably fair.

Answeringour last check, 2026-11-26
7 of 7checks answered this week
990 msmedian answer time
$0.001listed price per call
$0.001price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://random.preflightstack.com/random-choice

CategoryCode and developer
Provider hostrandom.preflightstack.com
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days7 from 3 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-26 valid payment request 402$0.001 1160 ms
2026-11-25 valid payment request 402$0.001 1016 ms
2026-11-24 valid payment request 402$0.001 973 ms
2026-11-23 valid payment request 402$0.001 990 ms
2026-11-22 valid payment request 402$0.001 981 ms
2026-11-21 valid payment request 402$0.001 976 ms
2026-11-20 valid payment request 402$0.001 999 ms
2026-11-19 valid payment request 402$0.001 1157 ms
2026-11-18 valid payment request 402$0.001 996 ms
2026-11-17 valid payment request 402$0.001 1094 ms
2026-11-16 valid payment request 402$0.001 1151 ms
2026-11-15 valid payment request 402$0.001 945 ms
2026-11-14 valid payment request 402$0.001 968 ms
2026-11-13 valid payment request 402$0.001 1095 ms
2026-11-12 valid payment request 402$0.001 1111 ms
2026-11-11 valid payment request 402$0.001 991 ms
2026-11-10 valid payment request 402$0.001 1150 ms
2026-11-09 valid payment request 402$0.001 1006 ms
2026-11-08 valid payment request 402$0.001 1023 ms
2026-11-07 valid payment request 402$0.001 915 ms
2026-11-06 valid payment request 402$0.001 992 ms
2026-11-05 valid payment request 402$0.001 910 ms
2026-11-04 valid payment request 402$0.001 892 ms
2026-11-03 valid payment request 402$0.001 1003 ms
2026-11-02 valid payment request 402$0.001 1043 ms
2026-11-01 valid payment request 402$0.001 1021 ms
2026-10-31 valid payment request 402$0.001 1008 ms
2026-10-29 valid payment request 402$0.001 1012 ms

Example input (from the provider)

{
  "body": {
    "choices": [
      "alpha",
      "beta",
      "gamma"
    ],
    "weights": [
      7,
      2,
      1
    ]
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "choices": {
              "description": "JSON-compatible values to choose from, nested no deeper than 32 levels.",
              "items": {},
              "maxItems": 100,
              "minItems": 2,
              "type": "array"
            },
            "weights": {
              "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.",
              "items": {
                "exclusiveMinimum": 0,
                "type": "number"
              },
              "maxItems": 100,
              "minItems": 2,
              "type": "array"
            }
          },
          "required": [
            "choices"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "additionalProperties": false,
          "properties": {
            "choice_count": {
              "maximum": 100,
              "minimum": 2,
              "type": "integer"
            },
            "index": {
              "minimum": 0,
              "type": "integer"
            },
            "request_id": {
              "type": "string"
            },
            "selected": {},
            "selected_weight": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "service_hint": {
              "additionalProperties": false,
              "description": "Static informational capability metadata. It is not an instruction or a retry signal.",
              "properties": {
                "id": {
                  "const": "random-choice",
                  "type": "string"
                },
                "suitable_for": {
                  "items": {
                    "enum": [
                      "random_selection",
                      "weighted_selection",
                      "tie_breaking",
                      "sampling"
                    ],
                    "type": "string"
                  },
                  "maxItems": 4,
                  "minItems": 4,
                  "type": "array",
                  "uniqueItems": true
                }
              },
              "required": [
                "id",
                "suitable_for"
              ],
              "type": "object"
            },
            "total_weight": {
              "exclusiveMinimum": 0,
              "type": "number"
            },
            "weighted": {
              "type": "boolean"
            }
          },
          "required": [
            "selected",
            "index",
            "weighted",
            "choice_count",
            "request_id",
            "service_hint"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON