---
title: "Verifiable Randomness ($0.003/call)"
method: GET
path: "/rand"
tags: ["random", "entropy", "randomness", "nonce", "csprng", "dice", "verifiable", "fairness"]
---

# Verifiable Randomness ($0.003/call)

`GET /rand`

## Request

- Base URL: `https://x402.shizu.me`
- URL: `https://x402.shizu.me/rand`
- Auth: none declared

Cryptographically-secure randomness with a receipt. GET ?bytes= returns hex (1-256 bytes); add ?min=&max= for a uniform integer in an inclusive range. Each response carries a request_id and timestamp — unbiased entropy an agent can cite to a counterparty, not a seeded PRNG. Need provable fairness over time? /rand/commit does commit-reveal (commitment now, value later).

Paid endpoint: $0.003 per call via the x402 protocol (USDC on Base). An unpaid request returns 402 with payment requirements in the PAYMENT-REQUIRED response header; attach payment and retry.

## Query parameters

- `bytes` string

## Response `200`

Paid result (JSON)

## Other responses

- `402`: Payment required — x402 requirements in the PAYMENT-REQUIRED response header

---

[API](https://skmtc.dev/shizu/apis/scrape402.md) · [All operations](https://skmtc.dev/shizu/apis/scrape402/llms.txt) · [OpenAPI document](https://skmtc.dev/shizu/apis/scrape402/revisions/0852d74798b8?raw)
