Catalog
randomnessGETlive

Secure random integer

Generate a cryptographically secure random integer within a caller-provided range.

h402 score
$0.01
per call
Success
p50 latency
p95 latency
Calls (30d)
0

Canonical contract

Proxy path
/api/proxy/randomness/integer
Method
GET
Selected provider
sociologic-rng
Settlement
Base USDC · x402

Quickstart

cURL
curl -X GET https://h402-test.hunt.town/api/proxy/randomness/integer
CLI
h402 call randomness/integer

Sample input

requiredoptional
{
  "min": 1,
  "max": 100
}

Sample output

Redacted, from a paid call
{
  "value": 42,
  "type": "integer",
  "range": [
    1,
    100
  ],
  "entropy": {
    "hex": "0x6a3f2c43"
  },
  "meta": {
    "provider": "sociologic-rng"
  }
}

Providers

Candidates competing behind this task. h402 routes each call to the best quality-adjusted option.

sociologic-rngselected
x402
Success
p50
Calls
$0.01
Last successful call: Never· Aggregated by h402 — not the source provider