Random Number
OperationalCryptographically verifiable random integers backed by the drand League of Entropy
API Overview
Each call fetches the latest drand League of Entropy beacon and derives unbiased integers via rejection sampling over BLS12-381 randomness. The response includes the full beacon proof (round number, signature, chain hash, timestamp) so any client can independently verify the output without trusting PicoPayd. Supports batch generation of up to 100 values per call, making it efficient for lotteries, A/B test assignment, and game mechanics.
drand League of Entropy
Randomness sourced from a distributed threshold BLS network — no single party can predict or bias the output.
Bias-Free Sampling
Rejection sampling ensures uniform distribution across any arbitrary integer range.
BLS12-381 Proof
Every response carries the beacon signature so you can verify the randomness source independently.
Batch Up to 100
Request up to 100 values in one API call — efficient for bulk assignments and draws.
terminal API Playground
Live Simulationimport requests
url = "https://random.picopayd.codefission.co.uk/api/random/number"
params = {"min": 1, "max": 100, "count": 5}
headers = {"X-PAYMENT": "<402-payment-token>"}
response = requests.get(url, params=params, headers=headers)
print(response.json()) {
"values": [42, 17, 88, 5, 63],
"min": 1,
"max": 100,
"proof": {
"round": 21543892,
"signature": "95a9...",
"chainHash": "52db9b...",
"timestamp": "2026-03-20T10:00:00Z"
}
} Related Randomness APIs
View all APIs arrow_forwardVerifiable 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.
Random Bytes
$0.001 / call
Fetch 1–1024 random bytes derived from the drand League of Entropy beacon, returned as hex or base64 with a BLS12-381 proof.