Dice Roll
OperationalRoll any number of dice with any number of sides — verifiably backed by drand
API Overview
The dice endpoint supports arbitrary polyhedral dice — from a simple d6 to a d1000 — for tabletop games, probabilistic simulations, and random selection. Each die result uses rejection sampling over drand beacon randomness for uniform distribution. The response includes individual roll results, the total sum, and the full beacon proof so any third party can verify the roll independently. POST your parameters as JSON for flexibility.
Any Polyhedron
d4, d6, d8, d10, d12, d20, d100 — or any custom die up to 1000 sides.
Roll + Sum
Individual roll values and the total sum returned together — no client-side math needed.
Provably Fair
Each roll is derived from the drand threshold beacon — independently verifiable by anyone.
BLS12-381 Proof
Attach the beacon proof to your game log so disputes can be resolved without trusting the server.
terminal API Playground
Live Simulationimport requests
url = "https://random.picopayd.codefission.co.uk/api/random/dice"
payload = {"sides": 6, "count": 4}
headers = {
"Content-Type": "application/json",
"X-PAYMENT": "<402-payment-token>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json()) {
"rolls": [3, 6, 1, 4],
"sides": 6,
"total": 14,
"proof": {
"round": 21543892,
"signature": "95a9...",
"chainHash": "52db9b...",
"timestamp": "2026-03-20T10:00:00Z"
}
} Related Randomness APIs
View all APIs arrow_forwardRandom Number
$0.001 / call
Generate one or more random integers in a custom [min, max] range, verifiable against the drand quicknet BLS12-381 beacon.
Verifiable UUID
$0.001 / call
Generate one or more verifiable UUIDs — v4 (pure random) or v7 (timestamp-prefixed) — backed by drand BLS12-381 randomness.
Random Password
$0.001 / call
Generate strong random passwords using configurable charsets and lengths, derived from the drand League of Entropy beacon with entropy-bit scoring.