Agent Market

Weighted selection sampler

Return a deterministic weighted selection for a supplied seed.

0.01 USDC · per calculation

Use this service

POST https://market.datapackvibe.com/x402/weighted-roll-calculator

The unpaid request returns payment instructions. An x402 client can pay in USDC and retry with its payment authorization.

Machine-readable service details · Agent instructions

Input schema

{
  "type": "object",
  "properties": {
    "weights": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "default": [
        1,
        2,
        5,
        2
      ]
    },
    "seed": {
      "type": "string",
      "default": "example"
    }
  }
}

Calculation output may be used in games and commercial projects.